产品介绍

Deployment from packages

Install the wheel on the Server machine and the TUI package on the client machine. You can use the same machine for both.

Get the artifacts and check the version

The public GitCode release currently offers the v0.1.0 source archives. This guide covers 0.2.0. Follow the steps below to build its Server wheel and TUI package from DataAgent main on GitCode. The public PyPI release 0.1.0 uses the legacy runtime and configuration. For that release, follow the documentation in the v0.1.0 source tree. See the legacy migration comparison when moving to the current runtime.

For a fresh install, build the artifacts from source. On Linux, with Git, Node.js ≥22.12.0, npm, uv, and Make available, run:

git clone https://gitcode.com/datagallery/dataagent.git
cd dataagent
git rev-parse HEAD
make prepare PYTHON_VERSION=3.12
make build PYTHON_VERSION=3.12
sha256sum dist/server/*.whl dist/tui/*.tgz

To reproduce a specific build, check out the recorded source commit before running the build commands. Record the Git commit, artifact filenames, and SHA-256 values together. For artifacts supplied by someone else, check the build commit and compare the files against the supplier's published SHA-256 values before installing. See build and artifact verification.

Artifact Purpose Requirements
datagallery_dataagent-0.2.0-py3-none-any.whl Install the Python Server, CLI, SDK and built-in plugins Python 3.11 or 3.12, with uv or pip
datagallery-tui-0.2.0.tgz Install the terminal client for a running Server Node.js ≥22.12.0 and npm

Replace the example filenames with the delivered filenames. Web uses a frontend built from source. Installation resolves each package's dependencies from an available index or prepared offline artifacts. See Release for build commands and connect Web to an existing Server.

1. Install and start the Server

Create an environment and install the wheel from the directory containing it:

uv venv --python 3.11 .venv
uv pip install --python .venv/bin/python ./datagallery_dataagent-0.2.0-py3-none-any.whl

With pip, create the environment using python3.11 -m venv .venv, then run .venv/bin/python -m pip install ./datagallery_dataagent-0.2.0-py3-none-any.whl.

With the default configuration template, choose one way to set the model credentials:

Set them in the terminal. Run the following commands in Bash. In PowerShell, set the same three variables using $env:NAME = "value".

export LLM_MODEL=your-model-name
export LLM_BASE_URL=https://your-openai-compatible-host/v1
export LLM_API_KEY=replace-with-your-key

Save them in an environment file. Add these lines to the .env file in DataAgent Home (default: ~/.dataagent/.env):

LLM_MODEL=your-model-name
LLM_BASE_URL=https://your-openai-compatible-host/v1
LLM_API_KEY=replace-with-your-key

After configuring the model, start the Server from the directory containing the virtual environment:

.venv/bin/dataagent serve

In Windows PowerShell, use .\.venv\Scripts\python.exe to install the wheel and run .\.venv\Scripts\dataagent.exe serve to start the Server.

The Server runs in the foreground. Press Ctrl+C to stop it. On its first start, it creates missing templates in ~/.dataagent. To use a different Home, set DATAAGENT_HOME before startup. By default, the Server reads the Home config.yaml and .env. Use --config to select a different complete YAML file and --env-file to select a different environment file. To read an environment file in the deployment directory, pass it explicitly with --env-file.

The default bind address is 127.0.0.1:8790. Change server.host and server.port in YAML and restart to rebind. For a remote client, set an accessible bind address on the Server and use its reachable address from the client. Check the security boundaries before exposing the Server beyond loopback. For input directories and CLI options, see the configuration quick reference and CLI reference.

Check from another terminal:

curl -fsS http://127.0.0.1:8790/healthz
curl -fsS http://127.0.0.1:8790/ready

HTTP 200 from /healthz confirms the process is alive. HTTP 200 from /ready confirms the conversation engine loaded its configuration. An unconfigured model results in HTTP 503 from /ready. Send a question from the TUI to verify a streamed model response. Server logs are in its Home under runtime/logs/backend.log.

2. Install and start the TUI

From the directory containing the tarball, install it and run the npm entry point:

npm install -g ./datagallery-tui-0.2.0.tgz
dataagent-cli --runtime-url http://127.0.0.1:8790

da is an alias for the same entry point. For remote deployment, replace the loopback URL with a Server address reachable from the client. The Server continues running when the TUI exits. See the TUI guide to restore a session or diagnose connection issues.

3. Select a compiled plugin entry (optional)

To have an enabled compiled subagent handle conversations, prepare a complete YAML file using entry mode. Start the installed Server with that file.

.venv/bin/dataagent serve --config /path/to/config.yaml

Connect the TUI and send a request to verify it reaches the selected workflow. After switching entries, restart Server and create a new session. For a small SQLite example that uses a compiled entry, run the SQLite-to-CSV tutorial.

Optional dependencies

SQLite, MySQL and PostgreSQL drivers are included as wheel dependencies. Append [video], [spark] or [all] to the wheel filename as needed:

uv pip install --python .venv/bin/python "./datagallery_dataagent-0.2.0-py3-none-any.whl[video]"

video installs video processing dependencies, spark installs PySpark, and all selects both. Spark/Hive also requires Java 17 or later and the corresponding service configuration. Configure plugins and database connections in the Server YAML.