Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
docs: simplify bilingual onboarding and fix SDK setup (#5186)
Zayn Jarvisdc7d59133ce9
diff --git a/docs/en/getting-started/01-introduction.md b/docs/en/getting-started/01-introduction.mdindex 900bee02d..6ecca3bac 100644--- a/docs/en/getting-started/01-introduction.md+++ b/docs/en/getting-started/01-introduction.md@@ -1,123 +1,47 @@# Introduction-**OpenViking** is an open-source context database designed specifically for AI Agents. OpenViking unifies the management of context (memory, resources, and skills) that Agents need through a **file system paradigm**, enabling **hierarchical context delivery** and **self-iteration**. The ultimate goal is to lower the barrier for Agent development, allowing developers to focus on business innovation rather than underlying context management.+OpenViking is an open-source context database for AI agents. It stores resources, memories, and skills in a virtual file system, so an application can browse known paths, retrieve relevant context, and load only the detail it needs.-## Why OpenViking+Use it when an agent needs to reuse documents and experience across sessions, with one place to organize and retrieve that context.-In the AI era, data is abundant, but high-quality context is scarce. When building AI Agents, developers often face these challenges:+## Start with your task-- **Context Fragmentation**: Memory in code, resources in vector databases, skills scattered everywhere — difficult to manage uniformly-- **Context Explosion**: Long-running Agent tasks generate context with each execution; simple truncation or compression leads to information loss-- **Poor Retrieval Quality**: Traditional RAG uses flat storage, lacking global perspective and struggling to understand complete context-- **Context Opacity**: Traditional RAG's implicit retrieval pipeline is like a black box, making debugging difficult-- **Limited Memory Iteration**: Current memory systems only record user memories, lacking Agent-related task memories+| I want to… | Start here |+| --- | --- |+| Run a server and retrieve my first document | [Quick Start](./02-quickstart.md) |+| Connect an existing agent or coding tool | [Agent Integrations](../agent-integrations/01-overview.md) |+| Use OpenViking from a terminal | [CLI Setup](./05-cli-setup.md) |+| Deploy and operate a shared server | [Deployment](../guides/03-deployment.md) and [Authentication](../guides/04-authentication.md) |+| Build against the SDK or HTTP API | [API Reference](../api/01-overview.md) |-OpenViking is designed to solve these pain points.+## How context is organized-## Core Features+Each file or directory has a `viking://` URI. Use a known URI to list or read context, or search when you do not know where it lives.-### 1. File System Management Paradigm+| Context | What it contains | Learn more |+| --- | --- | --- |+| Resources | Documents, repositories, and other reference material | [Resources](../api/02-resources.md) |+| Memories | User preferences, entities, events, and experience extracted from sessions | [Memory](../api/16-memory.md) |+| Skills | Instructions and supporting files for reusable agent workflows | [Skills](../api/04-skills.md) |-Moving away from traditional flat database thinking, all context is organized as a virtual file system. Agents no longer rely solely on vector search to find data — they can locate and browse data through deterministic paths and standard file system commands.+Shared resources live under `viking://resources/`. User context lives under `viking://user/{user_id}/`, with Peer-specific context under `peers/{peer_id}/`. Shared skills can live under `viking://agent/skills/`. See [Viking URI](../concepts/04-viking-uri.md) for scope and path rules.-**Unified URI Identification**: Each context is assigned a unique `viking://` URI, enabling precise location and access to resources stored in different locations.+## Load context in layers-```-viking://-├── resources/ # Resources: project docs, code repos, web pages-│ └── my_project/-├── user/-│ └── {user_id}/ # Private context for the current user-│ ├── memories/ # User memories-│ ├── resources/ # Private user resources-│ ├── skills/ # Private user skills (default)-│ ├── peers/-│ │ └── {peer_id}/-│ │ ├── memories/-│ │ └── resources/-│ └── sessions/-└── agent/- └── skills/ # Optional account-wide shared skills-```+OpenViking can generate directory summaries during semantic processing:-**Three Context Types**:+| Layer | Content | Default body limit |+| --- | --- | --- |+| L0 | Abstract for quick filtering | 256 characters |+| L1 | Overview for navigation | 4,000 characters |+| L2 | Original content for detailed reading | No uniform limit |-| Type | Purpose | Lifecycle |-|------|---------|-----------|-| **Resource** | Knowledge and rules (docs, code, FAQ) | Long-term, relatively static |-| **Memory** | Agent's cognition (user preferences, learned experiences) | Long-term, dynamically updated |-| **Skill** | Callable capabilities (tools, MCP) | Long-term, static |+L0 and L1 are directory sidecars, not a pair of summaries attached to every file. Their availability depends on processing state and configuration. See [Context Layers](../concepts/03-context-layers.md).-**Unix-like API**: Familiar command-style operations+[Retrieval](../concepts/07-retrieval.md) combines semantic matching with directory traversal. Use `find` for retrieval without session context, or `search` when session context should inform the query. [Observability](../guides/05-observability.md) helps inspect processing and retrieval behavior.-```python-client.find(query="user authentication") # Semantic search-client.ls(uri="viking://resources/") # List directory-client.read(uri="viking://resources/doc") # Read content-client.abstract(uri="viking://...") # Get L0 abstract-client.overview(uri="viking://...") # Get L1 overview-```+## Build memory from sessions-### 2. Hierarchical Context On-Demand Loading+Applications record messages in a session and commit it for asynchronous memory extraction. The active memory policy determines which memories are created or updated for the user or Peer. Integration plugins can automate parts of this workflow; check the integration's supported behavior before relying on it. See [Sessions](../concepts/08-session.md) and [Memory Configuration](../guides/01-configuration.md).-Stuffing massive context into prompts all at once is not only expensive but also risks exceeding model windows and introducing noise. OpenViking automatically processes context into three levels upon ingestion:--| Level | Name | Default body limit | Purpose |-| --- | --- | --- | --- |-| **L0** | Abstract | 256 characters | Vector search, quick filtering |-| **L1** | Overview | 4000 characters | Rerank, content navigation |-| **L2** | Detail | No uniform limit | Full content, on-demand loading |--```-viking://resources/my_project/-├── .abstract.md # L0 layer: abstract-├── .overview.md # L1 layer: overview-├── docs/-│ ├── .abstract.md # Semantically processed directories commonly have L0/L1-│ ├── .overview.md-│ └── api.md # L2 layer: full content-└── src/-```--L0/L1 are directory sidecars, not per-file sidecars, and they are not guaranteed to coexist. See [Context Layers](../concepts/03-context-layers.md).--### 3. Directory Recursive Retrieval--Single vector retrieval struggles with complex query intents. OpenViking implements an innovative **directory recursive retrieval strategy**:--1. **Intent Analysis**: Generate multiple retrieval conditions through intent analysis-2. **Initial Positioning**: Use vector retrieval to quickly locate high-scoring directories-3. **Fine Exploration**: Perform secondary retrieval within directories, updating candidate sets with high-scoring results-4. **Recursive Descent**: If subdirectories exist, recursively repeat the secondary retrieval-5. **Result Aggregation**: Return the most relevant context--This "lock onto high-scoring directories first, then explore content in detail" strategy not only finds semantically matching fragments but also understands the complete context of information.--### 4. Visualized Retrieval Traces--OpenViking's organization uses a hierarchical virtual file system structure, with all context integrated in a unified format and each entry corresponding to a unique URI, breaking away from traditional flat black-box management.--The retrieval process uses directory recursive strategy, with complete traces of directory browsing and file positioning preserved for each retrieval, enabling clear observation of problem sources and guiding retrieval logic optimization.--### 5. Automatic Session Management--OpenViking includes a memory self-iteration loop. After a session is committed, the system asynchronously analyzes task outcomes and user feedback, then updates memory for the current user or Peer according to the active memory policy.--**Built-in memory types**:--| Purpose | Built-in types | Description |-|---------|----------------|-------------|-| **User and environment understanding** | `profile`, `preferences`, `entities`, `events` | User profile, preferences, entities, and events |-| **Assistant identity and continuity** | `identity`, `soul` | Assistant identity, boundaries, style, and continuity |-| **Task execution and learning** | `cases`, `trajectories`, `experiences`, `tools`, `skills` | Trainable cases, execution traces, reusable experience, and tool/skill usage knowledge |--OpenViking lets applications extend or adjust memory types for their own needs.--Enabling Agents to become "smarter with use" through world interaction, achieving self-evolution.--## Next Steps--- [Quick Start](./02-quickstart.md) - Get started in 5 minutes-- [Architecture Overview](../concepts/01-architecture.md) - Understand system design-- [Context Types](../concepts/02-context-types.md) - Deep dive into three context types-- [Retrieval Mechanism](../concepts/07-retrieval.md) - Learn about retrieval flow+For implementation details, read the [Architecture](../concepts/01-architecture.md). For release-specific changes, check [GitHub Releases](https://github.com/volcengine/OpenViking/releases).diff --git a/docs/en/getting-started/02-quickstart.md b/docs/en/getting-started/02-quickstart.mdindex 5c07b9d34..0b3d0e451 100644--- a/docs/en/getting-started/02-quickstart.md+++ b/docs/en/getting-started/02-quickstart.md@@ -1,6 +1,6 @@# Quick Start-Get started with OpenViking in 5 minutes.+Start a local server, import a resource, and run your first search.## Prerequisites@@ -12,9 +12,9 @@ Before using OpenViking, ensure your environment meets the following requirement## Installation & Startup-OpenViking can be installed via a Python Package to be used as a local library, or you can quickly launch it as an independent service using Docker.+Choose one server installation method: a Python package or Docker. The Python SDK connects to either server over HTTP.-### Option 1: Install as a Python package (local commands and library)+### Option 1: Install the server and CLIChoose your preferred Python package manager to install OpenViking:@@ -25,7 +25,7 @@ uv tool install openviking --upgrade``````bash [pip]-pip install openviking --upgrade --force-reinstall+python -m pip install openviking --upgrade``````bash [pipx]@@ -48,9 +48,10 @@ If you prefer to run OpenViking as a standalone service, Docker is recommended.Create the OpenViking directory on your host and prepare the `ov.conf` configuration file (see the "Configuration" section below for details). All persistent state — config and workspace data — lives under this single directory:```bashmkdir -p ~/.openviking- touch ~/.openviking/ov.conf```+ Write a complete JSON configuration to `~/.openviking/ov.conf` using the manual template below before starting the container. An empty file is not a valid configuration.+2. **Start with Docker Compose**Create a `docker-compose.yml` file:```yaml@@ -60,37 +61,21 @@ If you prefer to run OpenViking as a standalone service, Docker is recommended.image: ghcr.io/volcengine/openviking:latestcontainer_name: openvikingports:- - "1933:1933"+ - "127.0.0.1:1933:1933"volumes:- ~/.openviking:/app/.openvikingrestart: unless-stopped```Then run the following command in the same directory:```bash- docker-compose up -d+ docker compose up -d```By default, the container starts the OpenViking API server on `1933` (which also serves the Web Studio UI at `/studio`) and the bundled `vikingbot` gateway. If you need to disable `vikingbot`, add either `command: ["--without-bot"]` or `environment: ["OPENVIKING_WITH_BOT=0"]`.On platforms that don't allow bind mounts, set `OPENVIKING_CONF_CONTENT` to the full config JSON to bootstrap on first start, or `docker exec` in and run `openviking-server init` after the container is up. See [Deployment Guide](../guides/03-deployment.md#when-docker--v-is-not-available) for details.-> **💡 Mac Local Network Access Tip (Connection reset error):**->-> By default, OpenViking only listens to `127.0.0.1` for security reasons. If you are using Docker on a Mac, your host machine may not be able to access it directly via `localhost:1933`.->-> **Recommended Solution: Use socat for port forwarding (No config changes needed):**-> Override the default startup command in your `docker-compose.yml` to use `socat` for internal port forwarding:-> ```yaml-> services:-> openviking:-> image: ghcr.io/volcengine/openviking:latest-> ports:-> - "1933:1934" # Map host 1933 to container 1934-> volumes:-> - ~/.openviking:/app/.openviking-> command: /bin/sh -c "apt-get update && apt-get install -y socat && socat TCP-LISTEN:1934,fork,reuseaddr TCP:127.0.0.1:1933 & openviking-server"-> ```-> This perfectly solves the access issue for Mac host machines.+The container entrypoint binds to `0.0.0.0` inside the container. The [port mapping](https://docs.docker.com/engine/network/port-publishing/) above makes it accessible at `http://localhost:1933` on the host, including macOS. For access from other machines, see [Authentication](../guides/04-authentication.md) and [Public Access](../guides/12-public-access.md).## Model Preparation@@ -100,7 +85,7 @@ OpenViking requires the following model capabilities:OpenViking supports multiple model services:- **Volcengine (Doubao Models)**: Recommended, cost-effective with good performance, free quota for new users. For purchase and activation, see: [Volcengine Purchase Guide](../guides/02-volcengine-purchase-guide.md)-- **OpenAI Models**: Supports GPT-4V and other VLM models, plus OpenAI Embedding models+- **OpenAI Models**: Supports vision-capable models and embedding models through the OpenAI API- **OpenAI Codex**: Supports Codex as the VLM provider through ChatGPT/Codex OAuth- **Other Custom Model Services**: Supports model services compatible with OpenAI API format@@ -108,14 +93,14 @@ OpenViking supports multiple model services:### Configuration File Template-Recommended first-time setup:+For a Python package installation, use the setup wizard:```bashopenviking-server initopenviking-server doctor```-If you prefer manual setup, create `~/.openviking/ov.conf`:+For Docker, or if you prefer manual setup, create `~/.openviking/ov.conf`:```json{@@ -155,10 +140,9 @@ export OPENVIKING_CONFIG_FILE=/path/to/your/ov.conf## Start the Local Server-For the first local run, initialize the config and start the server:+After configuring a Python package installation, start the server. If Docker is already running, skip this step:```bash-openviking-server initopenviking-server```@@ -229,23 +213,31 @@ try:for result in results.get("resources", []):print(f" {result['uri']} (score: {result.get('score', 0.0):.4f})")- # Close the client+finally:client.close()--except Exception as e:- print(f"Error: {e}")```### Run the Script-```bash+Install the SDK in the environment that runs the script. [`uv tool install`](https://docs.astral.sh/uv/guides/tools/#installing-tools) and `pipx install` isolate server dependencies; they do not install the SDK into your current Python environment. Docker also does not install a client on the host.++::: code-group++```bash [uv]+uv run --with openviking-sdk python example.py+```++```bash [pip (in your virtual environment)]+python -m pip install --upgrade openviking-sdkpython example.py```+:::+### Expected Output```-Wait for semantic processing...+Import task: ...Directory structure:...diff --git a/docs/en/getting-started/03-quickstart-server.md b/docs/en/getting-started/03-quickstart-server.mdindex 38d45dd4d..152e27faa 100644--- a/docs/en/getting-started/03-quickstart-server.md+++ b/docs/en/getting-started/03-quickstart-server.md@@ -4,7 +4,7 @@ Run OpenViking as a standalone HTTP server and connect from any client.## Prerequisites-- OpenViking installed (`pip install openviking --upgrade --force-reinstall`)+- OpenViking installed (`uv tool install openviking --upgrade`)- Model configuration ready (see [Quick Start](02-quickstart.md) for setup)> Python 3.14 note for Volcengine Ark users:@@ -32,14 +32,14 @@ openviking-server# Config file at a different location — specify with --configopenviking-server --config /path/to/ov.conf-# Override host/port+# Use a different portopenviking-server --port 8000```You should see:```-INFO: Uvicorn running on http://0.0.0.0:1933+INFO: Uvicorn running on http://127.0.0.1:1933```## Verify@@ -55,10 +55,18 @@ Web Studio is also served at `http://localhost:1933/studio` (bundled with pip/pi## Connect with Python SDK+Install the standalone SDK in your client Python environment:++```bash+python -m pip install --upgrade openviking-sdk+```++Server installations made with `uv tool` or pipx use a separate environment. You can also run a saved script with `uv run --with openviking-sdk python example.py`.+```python-import openviking as ov+from openviking_sdk import SyncHTTPClient-client = ov.SyncHTTPClient(url="http://localhost:1933")+client = SyncHTTPClient(url="http://localhost:1933")```### Authentication@@ -70,9 +78,9 @@ When authentication is enabled, pass an API key. OpenViking uses a two-tier keyFor most scenarios, use a `user_key` — it directly works with tenant-scoped APIs like `add_resource`, `find`, and `ls`:```python-import openviking as ov+from openviking_sdk import SyncHTTPClient-client = ov.SyncHTTPClient(+client = SyncHTTPClient(url="http://localhost:1933",api_key="<user-key>",)@@ -87,9 +95,9 @@ Tenant-scoped data APIs such as `add_resource`, `find`, and sessions need a keythat is bound to an account/user, such as a user key or admin key:```python-import openviking as ov+from openviking_sdk import SyncHTTPClient-client = ov.SyncHTTPClient(+client = SyncHTTPClient(url="http://localhost:1933",api_key="<user-or-admin-key>",)@@ -101,14 +109,16 @@ client = ov.SyncHTTPClient(See [Authentication](../guides/04-authentication.md) for details (trusted mode, CLI config, etc.).-**Full example (using `user_key`):**+**Full example:**++For an authenticated server, set `OPENVIKING_API_KEY` to a user/admin key before running this script. The SDK reads this environment variable automatically.```pythonimport time-import openviking as ov+from openviking_sdk import SyncHTTPClient-client = ov.SyncHTTPClient(url="http://localhost:1933")+client = SyncHTTPClient(url="http://localhost:1933")try:client.initialize()@@ -145,6 +155,8 @@ finally:## Connect with CLI+For the default local server, omit `api_key`. For an authenticated server, replace `your-key` below with a user/admin key.+Create a CLI config file `~/.openviking/ovcli.conf` that points to your server:```json@@ -179,6 +191,8 @@ export OPENVIKING_CLI_CONFIG_FILE=/path/to/ovcli.conf## Connect with curl+The examples below use the default local server. With authentication enabled, add `-H "X-API-Key: $OPENVIKING_API_KEY"` to each request, using a user/admin key. Resource imports are asynchronous: poll `GET /api/v1/tasks/{task_id}` with the returned `task_id` until it completes before searching.+Use direct `path` for remote URLs. For local files, upload first with `POST /api/v1/resources/temp_upload`, then call the target API with the returned `temp_file_id`. For local directories in raw HTTP mode, zip the directory first and upload the `.zip` file.```bash@@ -196,205 +210,11 @@ curl -X POST http://localhost:1933/api/v1/search/find \-d '{"query": "what is openviking"}'```-## Recommended Cloud Deployment: Volcengine ECS--To achieve high-performance and scalable Context Memory—providing your Agents with a robust "long-term memory"—we recommend deploying on **Volcengine Elastic Compute Service (ECS)** using the **veLinux** operating system.--### 1. Instance Provisioning & Configuration--When creating an instance in the [Volcengine ECS Console](https://www.google.com/search?q=https://console.volcengine.com/ecs/region:ecs%2Bcn-beijing/dashboard%3F), we recommend the following specifications:--| Item | Recommended Setting | Notes |-| --- | --- | --- |-| **Image** | **veLinux 2.0 (CentOS Compatible)** | Check "Security Hardening" |-| **Instance Type** | **Compute Optimized c3a** (2 vCPU, 4GiB+) | Meets basic inference and retrieval needs |-| **Storage** | **Add 256 GiB Data Disk** | For vector data persistence |-| **Networking** | Configure as needed | Open only required business ports (e.g., TCP 1933) |--### 2. Environment Preparation (Mounting the Data Disk)--Once the instance is running, you must mount the data disk to the `/data` directory. Execute the following commands to automate formatting and mounting:--```bash-# 1. Create mount point-mkdir -p /data--# 2. Configure auto-mount (using UUID to prevent drive letter drifting)-cp /etc/fstab /etc/fstab.bak-DISK_UUID=$(blkid -s UUID -o value /dev/vdb)--if [ -z "$DISK_UUID" ]; then- echo "ERROR: /dev/vdb UUID not found"-else- # Append to fstab- echo "UUID=${DISK_UUID} /data ext4 defaults,nofail 0 0" >> /etc/fstab- # Verify and mount- mount -a- echo "Mount successful. Current disk status:"- df -Th /data-fi--```--### 3. Installing Dependencies and OpenViking--```bash-yum install -y curl git tree--# Step 1: Install uv-curl -LsSf https://astral.sh/uv/install.sh | sh--# Step 2: Configure environment variables-echo 'source $HOME/.cargo/env' >> ~/.bashrc-source ~/.bashrc--# Verify installation-uv --version--# Step 3: Create a virtual environment on the data disk-cd /data-uv venv ovenv --python 3.11--# Step 4: Activate the virtual environment-source /data/ovenv/bin/activate--# Step 5: Verification-echo "Ready"-echo "Python path: $(which python)"-echo "Python version: $(python --version)"--```--* **Install OpenViking**: Install the tool within your activated virtual environment:--```bash-uv tool install openviking --upgrade--```--### 4. OpenViking Server Configuration and Startup--Configure your AI models and set up the service to run as a background daemon.--#### Prepare Configuration Files--Create the directory and configuration file before starting the service.--**Create config directory:**--```bash-mkdir -p ~/.openviking--```--**Create and edit the config file:**--```bash-vim ~/.openviking/ov.conf--```--**Configuration Template:**--```json-{- "embedding": {- "dense": {- "api_base" : "<api-endpoint>", // e.g., https://ark.cn-beijing.volces.com/api/v3- "api_key" : "<your-api-key>", // Model service API Key- "provider" : "<provider-type>", // volcengine or openai- "dimension": 1024, // Vector dimension- "model" : "<model-name>", // e.g., doubao-embedding-vision-251215- "input" : "multimodal" // Use "multimodal" for doubao-embedding-vision models- }- },- "vlm": {- "api_base" : "<api-endpoint>",- "api_key" : "<your-api-key>",- "provider" : "<provider-type>",- "max_retries": 2,- "model" : "<model-name>" // e.g., doubao-seed-2-0-lite-260428 or gpt-4-vision-preview- }-}--```--> **Tip:** Press `i` to enter Insert mode, paste your config, then press `Esc` and type `:wq` to save and exit.--#### Start the Service in the Background--We will run the server as a background process using the virtual environment.--* **Activate environment & create logs:**--```bash-source /data/ovenv/bin/activate-mkdir -p /data/log/--```--* **Launch with nohup:**--```bash-nohup openviking-server > /data/log/openviking.log 2>&1 &--# Note: Data will be stored in ./data relative to the execution path.-# To stop the service: pkill openviking; pkill agfs--```--*Note: For production environments requiring auto-restart on failure, we recommend using `systemctl` (not covered here).*--#### Verify Service Status--* **Check Process:**-```bash-ps aux | grep openviking-server-```--* **Check Logs:**-```bash-tail -f /data/log/openviking.log # TODO: Implement log rotation-```+## Deploy on a cloud server-### 5. Client Configuration and Testing (CLI)+For Volcengine ECS, create an instance in the [official ECS console](https://console.volcengine.com/ecs/). Follow the [Deployment Guide](../guides/03-deployment.md) for persistent storage, Docker, and service management.-Ensure `openviking` is also installed locally to use the CLI. You must point the `ovcli.conf` to your server address.--* **Prepare client config:**--```bash-vim ~/.openviking/ovcli.conf-```--* **Add the following (replace with your server's IP):**--```json-{- "url": "http://XXX.XXX.XXX.XXX:1933",- "api_key": "your-key"-}--```--* **Monitor System Health:**--```bash-openviking observer system-```--* **Functional Testing (Upload & Search):**--```bash-# Upload a test resource-openviking add-resource https://raw.githubusercontent.com/ZaynJarvis/doc-eval/refs/heads/main/text.md--# List resources-openviking ls viking://resources--# Test retrieval-openviking find "who is Alice"-```+The local server binds to `127.0.0.1` by default. Before allowing remote clients, configure [authentication](../guides/04-authentication.md), a reachable bind address, and the required network access rules. See [Public Access](../guides/12-public-access.md) for TLS and reverse-proxy configuration. Use a tenant-bound user/admin key for data access.## Next Stepsdiff --git a/docs/en/guides/03-deployment.md b/docs/en/guides/03-deployment.mdindex e9f90cb10..c89f8f6a1 100644--- a/docs/en/guides/03-deployment.md+++ b/docs/en/guides/03-deployment.md@@ -2,6 +2,8 @@OpenViking can run as a standalone HTTP server, allowing multiple clients to connect over the network.+For sizing, measure memory and disk use with a representative corpus and expected concurrency. Budget storage for source files, indexes, and snapshots; use [observability](../guides/05-observability.md) to check headroom before expanding the workload.+## Quick Start```bashdiff --git a/docs/zh/getting-started/01-introduction.md b/docs/zh/getting-started/01-introduction.mdindex 2dbb3f0e9..fe7ea409e 100644--- a/docs/zh/getting-started/01-introduction.md+++ b/docs/zh/getting-started/01-introduction.md@@ -1,123 +1,47 @@# 简介-**OpenViking** 是一个开源的、专为 AI Agent 设计的上下文数据库。OpenViking 通过**文件系统范式**统一管理Agent 所需要的上下文(记忆、资源和技能),并实现上下文的**分层供给**与**自我迭代**,最终目标是降低 Agent 开发门槛,让开发者更专注于业务创新而非底层上下文管理。+OpenViking 是面向 AI Agent 的开源上下文数据库。它用虚拟文件系统组织资源、记忆和技能,让应用按路径浏览、检索相关上下文,并按需读取详细内容。-## 为什么需要 OpenViking+当 Agent 需要跨会话复用文档和经验时,可以用它集中组织和检索这些上下文。-在 AI 时代,数据易得,但高质量的上下文却难求。构建 AI Agent 时,开发者经常遇到这些挑战:+## 从你的任务开始-- **上下文碎片化**:记忆在代码里,资源在向量库,技能散落各处,难以统一管理-- **所需上下文猛增**:Agent 的长程任务在每次执行时都会产出上下文,简单的截断或压缩会导致信息损失-- **检索效果不佳**:传统 RAG 是平铺式存储,缺乏全局视野,难以理解信息的完整语境-- **上下文不可观测**:传统 RAG 隐式的检索链路如同黑箱,出错时难以调试-- **记忆迭代有限**:目前记忆只是用户记忆的记录,缺乏 Agent 相关的任务记忆+| 我想要…… | 阅读入口 |+| --- | --- |+| 启动服务并检索第一份文档 | [快速开始](./02-quickstart.md) |+| 接入已有 Agent 或编程工具 | [Agent 集成](../agent-integrations/01-overview.md) |+| 在终端使用 OpenViking | [CLI 配置](./05-cli-setup.md) |+| 部署和运维共享服务 | [部署](../guides/03-deployment.md)与[认证](../guides/04-authentication.md) |+| 使用 SDK 或 HTTP API 开发 | [API 参考](../api/01-overview.md) |-OpenViking 正是为解决这些痛点而设计的上下文数据库。+## 上下文如何组织-## 核心特性+每个文件或目录都有一个 `viking://` URI。已知路径时可直接列目录、读内容;不知道内容在哪里时可先检索。-### 1. 文件系统管理范式+| 上下文 | 存放内容 | 详细说明 |+| --- | --- | --- |+| 资源 | 文档、代码仓库等参考资料 | [资源](../api/02-resources.md) |+| 记忆 | 从会话提取的用户偏好、实体、事件和经验 | [记忆](../api/16-memory.md) |+| 技能 | 可复用 Agent 工作流的指令和配套文件 | [技能](../api/04-skills.md) |-摒弃传统的扁平化数据库思维,将所有上下文组织为一套虚拟文件系统。Agent 不再仅是通过向量搜索来找数据,而是可以通过确定性的路径和标准文件系统指令来定位和浏览数据。+共享资源位于 `viking://resources/`;用户上下文位于 `viking://user/{user_id}/`,其中 `peers/{peer_id}/` 存放特定 Peer 的上下文。共享技能可放在 `viking://agent/skills/`。作用域和路径规则见 [Viking URI](../concepts/04-viking-uri.md)。-**统一 URI 标识**:每个上下文分配唯一的 `viking://` URI,让系统能精准定位并访问存储在不同位置的资源。+## 按层读取内容-```-viking://-├── resources/ # 资源:项目文档、代码库、网页等-│ └── my_project/-├── user/-│ └── {user_id}/ # 当前用户的私有上下文-│ ├── memories/ # 用户记忆-│ ├── resources/ # 用户私有资源-│ ├── skills/ # 用户私有技能(默认)-│ ├── peers/-│ │ └── {peer_id}/-│ │ ├── memories/-│ │ └── resources/-│ └── sessions/-└── agent/- └── skills/ # account 全局共享技能(可选)-```+OpenViking 可在语义处理时生成目录摘要:-**三种上下文类型**:+| 层级 | 内容 | 默认正文上限 |+| --- | --- | --- |+| L0 | 用于快速筛选的摘要 | 256 字符 |+| L1 | 用于导航的概览 | 4,000 字符 |+| L2 | 按需读取的原始内容 | 无统一上限 |-| 类型 | 用途 | 生命周期 |-|------|------|----------|-| **Resource** | 知识和规则(文档、代码、FAQ) | 长期,相对静态 |-| **Memory** | Agent 的认知(用户偏好、学习经验) | 长期,动态更新 |-| **Skill** | 可调用的能力(工具、MCP) | 长期,静态 |+L0 和 L1 是目录级附属文件,不会为每个文件固定生成一对摘要;是否可用取决于处理状态和配置。详见[上下文层级](../concepts/03-context-layers.md)。-**类 Unix API**:熟悉的命令式操作+[检索](../concepts/07-retrieval.md)结合语义匹配与目录遍历。不需要会话上下文时用 `find`,需要结合会话理解查询时用 `search`。[可观测性](../guides/05-observability.md)介绍如何检查处理和检索行为。-```python-client.find(query="用户认证") # 语义搜索-client.ls(uri="viking://resources/") # 列出目录-client.read(uri="viking://resources/doc") # 读取内容-client.abstract(uri="viking://...") # 获取 L0 摘要-client.overview(uri="viking://...") # 获取 L1 概览-```+## 从会话生成记忆-### 2. 分层上下文按需加载+应用把消息写入会话,提交后触发异步记忆提取。当前记忆策略决定为用户或 Peer 创建、更新哪些记忆。集成插件可自动执行其中部分步骤,使用前需确认对应集成的支持范围。详见[会话](../concepts/08-session.md)和[记忆配置](../guides/01-configuration.md)。-将海量上下文一次性塞入提示词,不仅成本高昂,更容易超出模型窗口并引入噪声。OpenViking 在上下文写入时便自动将其处理为三个层级:--| 层级 | 名称 | 默认正文上限 | 用途 |-| --- | --- | --- | --- |-| **L0** | 摘要 | 256 字符 | 向量搜索、快速过滤 |-| **L1** | 概览 | 4000 字符 | Rerank 精排、内容导航 |-| **L2** | 详情 | 无统一上限 | 完整内容、按需加载 |--```-viking://resources/my_project/-├── .abstract.md # L0 层:摘要-├── .overview.md # L1 层:概览-├── docs/-│ ├── .abstract.md # 语义处理目录通常包含 L0/L1-│ ├── .overview.md-│ └── api.md # L2 层:完整内容-└── src/-```--L0/L1 是目录级 sidecar,不是 per-file sidecar;两者也不保证始终同时存在。详见[上下文层级](../concepts/03-context-layers.md)。--### 3. 目录递归检索--单一的向量检索难以应对复杂的查询意图。OpenViking 设计了一套创新的**目录递归检索策略**:--1. **意图分析**:通过意图分析生成多个检索条件-2. **初始定位**:利用向量检索快速定位初始切片所在的高分目录-3. **精细探索**:在该目录下进行二次检索,并将高分结果更新至候选集合-4. **递归下探**:若目录下仍存在子目录,则逐层递归重复上述二次检索步骤-5. **结果汇总**:最终拿到最相关上下文返回--这种"先锁定高分目录、再精细探索内容"的策略,不仅能找到语义最匹配的片段,更能理解信息所在的完整语境。--### 4. 可视化检索轨迹--OpenViking 的组织方式采用层次化虚拟文件系统结构,所有上下文均以统一格式整合且每个条目对应唯一 URI,打破传统扁平黑箱式管理模式。--检索过程采用目录递归策略,每次检索的目录浏览、文件定位轨迹均被完整留存,能够清晰观测问题根源并指导检索逻辑优化。--### 5. 会话自动管理--OpenViking 内置记忆自迭代闭环。提交会话后,系统会异步分析任务执行结果与用户反馈,并根据记忆策略更新当前用户或 Peer 的记忆。--**内置记忆类型**:--| 用途 | 内置类型 | 说明 |-|------|----------|------|-| **用户与环境理解** | `profile`、`preferences`、`entities`、`events` | 记录用户画像、偏好、实体和事件 |-| **助手身份与连续性** | `identity`、`soul` | 记录助手身份、边界、风格和连续性 |-| **任务执行与学习** | `cases`、`trajectories`、`experiences`、`tools`、`skills` | 沉淀可训练案例、执行轨迹、经验和工具/技能使用知识 |--OpenViking 支持根据业务需要扩展或调整记忆类型。--让 Agent 在与世界的交互中"越用越聪明",实现自我进化。--## 下一步--- [快速开始](./02-quickstart.md) - 5 分钟上手-- [架构详解](../concepts/01-architecture.md) - 理解系统设计-- [上下文类型](../concepts/02-context-types.md) - 深入了解三种上下文-- [检索机制](../concepts/07-retrieval.md) - 了解检索流程+实现原理见[架构](../concepts/01-architecture.md),各版本变更见 [GitHub Releases](https://github.com/volcengine/OpenViking/releases)。diff --git a/docs/zh/getting-started/02-quickstart.md b/docs/zh/getting-started/02-quickstart.mdindex 0c6100970..3b6cf3ccb 100644--- a/docs/zh/getting-started/02-quickstart.md+++ b/docs/zh/getting-started/02-quickstart.md@@ -1,6 +1,6 @@# 快速开始-5 分钟上手 OpenViking。+启动本地服务,导入一份资源,然后完成第一次检索。## 前置要求@@ -12,9 +12,9 @@## 安装与启动-OpenViking 支持通过 Python Package 安装作为本地库使用,也支持通过 Docker 快速启动独立服务。+选择一种服务端安装方式:Python 包或 Docker。Python SDK 通过 HTTP 连接这两种方式启动的服务。-### 方式一:通过 Python 包安装(作为本地命令和库)+### 方式一:安装服务端和 CLI选择你常用的 Python 包管理工具安装 OpenViking:@@ -25,7 +25,7 @@ uv tool install openviking --upgrade``````bash [pip]-pip install openviking --upgrade --force-reinstall+python -m pip install openviking --upgrade``````bash [pipx]@@ -48,9 +48,10 @@ pipx upgrade openviking在宿主机上创建 OpenViking 目录,并准备好 `ov.conf` 配置文件(配置项参考下方“配置环境”章节)。所有持久化状态 —— 配置和工作区数据 —— 都放在这一个目录下:```bashmkdir -p ~/.openviking- touch ~/.openviking/ov.conf```+ 启动容器前,参照下方手动配置模板,将完整 JSON 写入 `~/.openviking/ov.conf`。空文件不是有效配置。+2. **使用 Docker Compose 启动**创建 `docker-compose.yml` 文件:```yaml@@ -60,37 +61,21 @@ pipx upgrade openvikingimage: ghcr.io/volcengine/openviking:latestcontainer_name: openvikingports:- - "1933:1933"+ - "127.0.0.1:1933:1933"volumes:- ~/.openviking:/app/.openvikingrestart: unless-stopped```然后在同目录下执行启动命令:```bash- docker-compose up -d+ docker compose up -d```默认情况下,容器会启动 OpenViking API 服务(`1933`,同时在 `/studio` 提供 Web Studio 前端)以及内置的 `vikingbot` gateway。如果你需要关闭 `vikingbot`,可以在 Compose 里增加 `command: ["--without-bot"]`,或者设置 `environment: ["OPENVIKING_WITH_BOT=0"]`。如果运行平台不支持 bind mount,可以通过 `OPENVIKING_CONF_CONTENT` 环境变量传入完整的配置 JSON,或在容器启动后 `docker exec` 进去执行 `openviking-server init`。详见 [部署指南](../guides/03-deployment.md#无法使用-docker--v-时)。-> **💡 Mac 本地网络访问提示 (Connection reset 报错):**->-> 默认情况下,OpenViking 为了安全仅监听 `127.0.0.1`。如果你在 Mac 上使用 Docker,宿主机可能无法直接通过 `localhost:1933` 访问。->-> **推荐解决方案:使用 socat 端口转发(无需修改配置):**-> 在你的 `docker-compose.yml` 中覆盖默认启动命令,利用 `socat` 在容器内部进行端口转发:-> ```yaml-> services:-> openviking:-> image: ghcr.io/volcengine/openviking:latest-> ports:-> - "1933:1934" # 将宿主机 1933 映射到容器 1934-> volumes:-> - ~/.openviking:/app/.openviking-> command: /bin/sh -c "apt-get update && apt-get install -y socat && socat TCP-LISTEN:1934,fork,reuseaddr TCP:127.0.0.1:1933 & openviking-server"-> ```-> 这样即可完美解决 Mac 宿主机的访问问题。+容器入口脚本在容器内监听 `0.0.0.0`。上述端口映射使宿主机(包括 macOS)可通过 `http://localhost:1933` 访问服务。如需允许其他机器访问,请参见 [身份认证](../guides/04-authentication.md) 和 [公网访问](../guides/12-public-access.md)。## 模型准备@@ -100,7 +85,7 @@ OpenViking 需要以下模型能力:OpenViking 支持多种模型服务:- **火山引擎(豆包模型)**:推荐使用,成本低、性能好,新用户有免费额度。如需购买和开通,请参考:[火山引擎购买指南](../guides/02-volcengine-purchase-guide.md)-- **OpenAI 模型**:支持 GPT-4V 等 VLM 模型和 OpenAI Embedding 模型+- **OpenAI 模型**:通过 OpenAI API 使用支持视觉理解的模型和 Embedding 模型- **OpenAI Codex**:支持通过 ChatGPT/Codex OAuth 使用 Codex 作为 VLM- **其他自定义模型服务**:支持兼容 OpenAI API 格式的模型服务@@ -108,14 +93,14 @@ OpenViking 支持多种模型服务:### 配置文件模版-推荐首次配置使用:+通过 Python 包安装时,使用配置向导:```bashopenviking-server initopenviking-server doctor```-如果你更希望手动创建,再编写 `~/.openviking/ov.conf`:+使用 Docker,或希望手动配置时,编写 `~/.openviking/ov.conf`:```json{@@ -155,10 +140,9 @@ export OPENVIKING_CONFIG_FILE=/path/to/your/ov.conf## 启动本地服务-首次在本地运行时,完成初始化并启动服务:+通过 Python 包安装并完成配置后,启动服务。如果 Docker 已运行,跳过此步骤:```bash-openviking-server initopenviking-server```@@ -229,23 +213,31 @@ try:for result in results.get("resources", []):print(f" {result['uri']} (score: {result.get('score', 0.0):.4f})")- # Close the client+finally:client.close()--except Exception as e:- print(f"Error: {e}")```### 运行脚本-```bash+SDK 需要安装在运行脚本的 Python 环境中。[`uv tool install`](https://docs.astral.sh/uv/guides/tools/#installing-tools) 和 `pipx install` 会隔离服务端依赖,不会把 SDK 安装到当前 Python 环境;Docker 也不会在宿主机安装客户端。++::: code-group++```bash [uv]+uv run --with openviking-sdk python example.py+```++```bash [pip(在你的虚拟环境中)]+python -m pip install --upgrade openviking-sdkpython example.py```+:::+### 预期输出```-Wait for semantic processing...+Import task: ...Directory structure:...diff --git a/docs/zh/getting-started/03-quickstart-server.md b/docs/zh/getting-started/03-quickstart-server.mdindex ec7ceb6c4..d12bff682 100644--- a/docs/zh/getting-started/03-quickstart-server.md+++ b/docs/zh/getting-started/03-quickstart-server.md@@ -4,7 +4,7 @@## 前置要求-- 已安装 OpenViking(`pip install openviking --upgrade --force-reinstall`)+- 已安装 OpenViking(`uv tool install openviking --upgrade`)- 模型配置已就绪(参见 [快速开始](02-quickstart.md) 了解配置方法)> Python 3.14 说明(适用于火山方舟 / Volcengine Ark):@@ -32,14 +32,14 @@ openviking-server# 配置文件在其他位置时,通过 --config 指定openviking-server --config /path/to/ov.conf-# 覆盖 host/port-openviking-server --port 1933+# 使用其他端口+openviking-server --port 8000```你应该看到:```-INFO: Uvicorn running on http://0.0.0.0:1933+INFO: Uvicorn running on http://127.0.0.1:1933```## 验证@@ -55,10 +55,18 @@ Web Studio 也会在 `http://localhost:1933/studio` 提供(自 v0.3.21 起 pip## 使用 Python SDK 连接+在客户端的 Python 环境中安装独立 SDK:++```bash+python -m pip install --upgrade openviking-sdk+```++`uv tool` 或 pipx 安装的服务端使用独立环境。也可以将脚本保存后,通过 `uv run --with openviking-sdk python example.py` 运行。+```python-import openviking as ov+from openviking_sdk import SyncHTTPClient-client = ov.SyncHTTPClient(url="http://localhost:1933")+client = SyncHTTPClient(url="http://localhost:1933")```### 启用认证@@ -70,9 +78,9 @@ client = ov.SyncHTTPClient(url="http://localhost:1933")大多数场景应使用 `user_key`,也可以使用绑定到管理员用户的 `admin_key`。两者都可直接调用 `add_resource`、`find`、`ls` 等租户级 API:```python-import openviking as ov+from openviking_sdk import SyncHTTPClient-client = ov.SyncHTTPClient(+client = SyncHTTPClient(url="http://localhost:1933",api_key="<user-key>",)@@ -85,9 +93,9 @@ client = ov.SyncHTTPClient(`root_key` 只适用于管理操作(创建账户、系统状态等)和少量 system/monitoring API。常规数据访问不要使用 `root_key`,也不要通过 `account` / `user` header 模拟某个用户;数据面应使用对应的 `user_key` 或 `admin_key`。```python-import openviking as ov+from openviking_sdk import SyncHTTPClient-client = ov.SyncHTTPClient(+client = SyncHTTPClient(url="http://localhost:1933",api_key="<root-key>",)@@ -97,14 +105,16 @@ client = ov.SyncHTTPClient(更多认证细节(trusted 模式、CLI 配置等)请参见 [认证文档](../guides/04-authentication.md)。-**完整示例(使用 `user_key`):**+**完整示例:**++连接启用认证的服务时,先将 `OPENVIKING_API_KEY` 设置为 user/admin key。SDK 会自动读取这个环境变量。```pythonimport time-import openviking as ov+from openviking_sdk import SyncHTTPClient-client = ov.SyncHTTPClient(url="http://localhost:1933")+client = SyncHTTPClient(url="http://localhost:1933")try:client.initialize()@@ -141,6 +151,8 @@ finally:## 使用 CLI 连接+默认本地服务可省略 `api_key`。启用认证时,将下方的 `your-key` 替换为 user/admin key。+创建 CLI 连接配置文件 `~/.openviking/ovcli.conf`:```json@@ -174,6 +186,8 @@ export OPENVIKING_CLI_CONFIG_FILE=/path/to/ovcli.conf## 使用 curl 连接+下面的示例使用默认本地服务。启用认证时,为每个请求增加 `-H "X-API-Key: $OPENVIKING_API_KEY"`,使用 user/admin key。资源导入为异步操作:根据返回的 `task_id` 轮询 `GET /api/v1/tasks/{task_id}`,完成后再检索。+远端 URL 可以直接放在 `path` 里。本地文件需要先调用 `POST /api/v1/resources/temp_upload` 上传,再用返回的 `temp_file_id` 调目标 API。裸 HTTP 如果导入本地目录,需要先把目录打成 `.zip` 再上传。```bash@@ -191,190 +205,11 @@ curl -X POST http://localhost:1933/api/v1/search/find \-d '{"query": "what is openviking"}'```-## 推荐云端部署方案:火山引擎 ECS--为了获得高性能、可扩展的 Context Memory 能力,能够像“长期记忆”一样为 Agent 提供支持,我们推荐使用 **火山引擎云服务器 (ECS)** 结合 **veLinux** 操作系统进行部署。--### 1. 实例采购配置--在[火山引擎 ECS 控制台](https://console.volcengine.com/ecs/region:ecs+cn-beijing/dashboard?)创建实例时,推荐以下配置:--| 配置项 | 推荐参数 | 说明 |-| :--- | :--- | :--- |-| **镜像** | **veLinux 2.0 (CentOS 兼容版)** | 勾选“安全加固” |-| **规格** | **计算型 c3a** (2 vCPU, 4GiB 或更高) | 满足基础推理与检索需求 |-| **存储** | **添加数据盘 256 GiB** | 向量数据存储 |-| **网络** | 按需配置 | 建议仅放通所需业务端口 (eg. TCP 1933) |--### 2. 系统环境准备(挂载数据盘)--实例启动后,需将数据盘挂载至 `/data` 目录。请在服务器执行以下命令,自动完成格式化与挂载:--```bash-# 1. 创建挂载点-mkdir -p /data--# 2. 配置自动挂载 (使用 UUID 防止盘符漂移)-cp /etc/fstab /etc/fstab.bak-DISK_UUID=$(blkid -s UUID -o value /dev/vdb)--if [ -z "$DISK_UUID" ]; then- echo "ERROR: /dev/vdb UUID not found"-else- # 写入 fstab- echo "UUID=${DISK_UUID} /data ext4 defaults,nofail 0 0" >> /etc/fstab- # 验证并挂载- mount -a- echo "挂载成功,当前磁盘状态:"- df -Th /data-fi-```--### 3. 安装依赖及OpenViking--```-yum install -y curl git tree--# 第一步:安装 uv-curl -LsSf https://astral.sh/uv/install.sh | sh+## 部署到云服务器-# 第二步:配置环境变量-echo 'source $HOME/.cargo/env' >> ~/.bashrc--# 配置生效-source ~/.bashrc--# 验证安装-uv --version--# 第三步:在数据盘创建虚拟环境-cd /data--# 创建名为 ovenv 的虚拟环境-uv venv ovenv --python 3.11--# 第四步:激活虚拟环境-source /data/ovenv/bin/activate--# 第五步:验证-echo "Ready"-echo "Python path: $(which python)"-echo "Python version: $(python --version)"-```--- 安装 OpenViking:在激活的虚拟环境下安装工具:--```-uv tool install openviking --upgrade-```--接下来就可以准备配置了。--### 4. OpenViking 服务端配置与启动--配置 AI 模型并让服务在后台常驻。--#### 准备配置文件--在启动服务之前,先建立配置文件目录和文件。--**创建配置目录:**--```-mkdir -p ~/.openviking-```-**创建并编辑配置文件:**--```-vim ~/.openviking/ov.conf-```-配置文件内容可参考-```-{- "embedding": {- "dense": {- "api_base" : "<api-endpoint>", // API endpoint address (e.g., [https://ark.cn-beijing.volces.com/api/v3](https://ark.cn-beijing.volces.com/api/v3))- "api_key" : "<your-api-key>", // Model service API Key- "provider" : "<provider-type>", // Provider type (volcengine or openai)- "dimension": 1024, // Vector dimension- "model" : "<model-name>", // Embedding model name (e.g., doubao-embedding-vision-251215)- "input" : "multimodal" // if use doubao-embedding-vision-251215, should be multimodal- }- },- "vlm": {- "api_base" : "<api-endpoint>", // API endpoint address (e.g., [https://ark.cn-beijing.volces.com/api/v3](https://ark.cn-beijing.volces.com/api/v3))- "api_key" : "<your-api-key>", // Model service API Key- "provider" : "<provider-type>", // Provider type (volcengine or openai)- "max_retries": 2,- "model" : "<model-name>" // VLM model name (e.g., doubao-seed-2-0-lite-260428 or gpt-4-vision-preview)- }-}-```-- 进入 vim 后按 i 粘贴您的配置内容,完成后按 Esc 输入 :wq 保存退出。--**后台启动服务:**--我们将使用虚拟环境中的程序,并让它在后台运行。-- 激活虚拟环境-```-source /data/ovenv/bin/activate-```-- 创建日志目录-```-mkdir -p /data/log/-```-- 后台启动并重定向输出:-```-nohup openviking-server > /data/log/openviking.log 2>&1 &--# 默认会以执行命令的路径下创建 ./data 存放数据-# 如果后续希望杀死服务进程记得要清理两个后台服务:pkill openviking; pkill agfs-```-可以看到服务在后台常驻运行。当然如果希望重启自动恢复,建议采用 systemctl 启动,此处不赘述。-服务启动后,可以在 /data 下看到数据文件、日志文件等。--**验证服务状态:**--- 检查进程: 输入以下命令查看程序是否在运行:-```-ps aux | grep openviking-server-```--- 查看日志: 如果进程在,看看有没有报错:-```-tail -f /data/log/openviking.log # TODO 支持日志滚动-```-**配置客户端并测试 (CLI)**--本地注意也要先安装 openviking 才能使用 CLI 工具, 然后在 ovcli.conf 配置好服务端地址--- 准备客户端配置:-```-vim ~/.openviking/ovcli.conf-```-- 写入以下内容(注意 IP 换成您服务器的 IP地址):-```-{- "url": "http://XXX.XXX.XXX.XXX:1933",- "api_key": "your-key"-}-```-- 执行系统观察命令,监控系统健康状态:-```-openviking observer system-```-- 功能测试(上传与查找)-```-# 上传测试文件-openviking add-resource https://raw.githubusercontent.com/ZaynJarvis/doc-eval/refs/heads/main/text.md--# 列出资源-openviking ls viking://resources--# 检索测试-openviking find "who is Alice"-```+使用火山引擎 ECS 时,在 [官方 ECS 控制台](https://console.volcengine.com/ecs/) 创建实例。持久化存储、Docker 和服务管理请参见 [部署指南](../guides/03-deployment.md)。+本地服务默认监听 `127.0.0.1`。允许远程客户端访问前,需要配置 [身份认证](../guides/04-authentication.md)、可访问的监听地址和必要的网络访问规则。TLS 与反向代理配置请参见 [公网访问](../guides/12-public-access.md)。数据访问使用绑定租户和用户身份的 user/admin key。## 下一步diff --git a/docs/zh/guides/03-deployment.md b/docs/zh/guides/03-deployment.mdindex 8dbe4253b..5556048ac 100644--- a/docs/zh/guides/03-deployment.md+++ b/docs/zh/guides/03-deployment.md@@ -2,6 +2,8 @@OpenViking 可以作为独立的 HTTP 服务器运行,允许多个客户端通过网络连接。+容量规划应使用有代表性的数据集和预期并发量测量内存、磁盘占用,为原始文件、索引和快照预留空间。扩大工作负载前,通过[可观测性](../guides/05-observability.md)检查容量余量。+## 快速开始```bash