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(config): document temp_upload server config + ovcli.conf upload.mode (#1899) (#1925)
Evo3d35c1ad6279
diff --git a/docs/en/guides/01-configuration.md b/docs/en/guides/01-configuration.mdindex b32655318..639895127 100644--- a/docs/en/guides/01-configuration.md+++ b/docs/en/guides/01-configuration.md@@ -976,6 +976,7 @@ Config file for the HTTP client (`SyncHTTPClient` / `AsyncHTTPClient`) and CLI t"user": "alice","agent_id": "my-agent","upload": {+ "mode": "local","ignore_dirs": "node_modules,.cache,.nx","include": "*.md,*.pdf","exclude": "*.tmp,*.log"@@ -993,6 +994,7 @@ Config file for the HTTP client (`SyncHTTPClient` / `AsyncHTTPClient`) and CLI t| `upload.ignore_dirs` | Default directory ignore list for `add-resource` (CSV) | `null` || `upload.include` | Default include patterns for `add-resource` (CSV) | `null` || `upload.exclude` | Default exclude patterns for `add-resource` (CSV) | `null` |+| `upload.mode` | Temporary upload backend: `"local"` (per-instance disk) or `"shared"` (distributed shared store, required when consumer requests can land on a different server instance than the upload). Per-call override via `OPENVIKING_UPLOAD_MODE`. | `null` (server's `temp_upload.default_mode`, which itself defaults to `"local"`) |Local directory uploads respect `.gitignore` files (root and nested). `ignore_dirs/include/exclude` apply on top of that.@@ -1023,7 +1025,12 @@ When running OpenViking as an HTTP service, add a `server` section to `ov.conf`:"port": 1933,"auth_mode": "api_key","root_api_key": "your-secret-root-key",- "cors_origins": ["*"]+ "cors_origins": ["*"],+ "temp_upload": {+ "default_mode": "local",+ "shared_max_size_bytes": 536870912,+ "shared_prefix": "viking://upload"+ }}}```@@ -1035,6 +1042,9 @@ When running OpenViking as an HTTP service, add a `server` section to `ov.conf`:| `auth_mode` | str | Authentication mode: `"api_key"` or `"trusted"`. Default is `"api_key"` | `"api_key"` || `root_api_key` | str | Root API key for multi-tenant auth in `api_key` mode. In `trusted` mode it is optional on localhost, but required for any non-localhost deployment; it does not become the source of user identity | `null` || `cors_origins` | list | Allowed CORS origins | `["*"]` |+| `temp_upload.default_mode` | str | Server-side default for `POST /api/v1/resources/temp_upload` when the client does not send `upload_mode`: `"local"` (per-instance disk, current single-node behavior) or `"shared"` (distributed shared store usable across replicas). | `"local"` |+| `temp_upload.shared_max_size_bytes` | int | Maximum size accepted in `shared` mode, in bytes. Requests above this size are rejected before object-store write. | `536870912` (512 MiB) |+| `temp_upload.shared_prefix` | str | URI prefix used when allocating shared `temp_file_id` objects. | `"viking://upload"` |`api_key` mode uses API keys and is the default. `trusted` mode trusts `X-OpenViking-Account` / `X-OpenViking-User` headers from a trusted gateway or internal caller.diff --git a/docs/zh/guides/01-configuration.md b/docs/zh/guides/01-configuration.mdindex ff57f588c..12cb7da2b 100644--- a/docs/zh/guides/01-configuration.md+++ b/docs/zh/guides/01-configuration.md@@ -950,6 +950,7 @@ HTTP 客户端(`SyncHTTPClient` / `AsyncHTTPClient`)和 CLI 工具连接远"user": "alice","agent_id": "my-agent","upload": {+ "mode": "local","ignore_dirs": "node_modules,.cache,.nx","include": "*.md,*.pdf","exclude": "*.tmp,*.log"@@ -967,6 +968,7 @@ HTTP 客户端(`SyncHTTPClient` / `AsyncHTTPClient`)和 CLI 工具连接远| `upload.ignore_dirs` | `add-resource` 默认忽略目录列表(CSV) | `null` || `upload.include` | `add-resource` 默认包含模式(CSV) | `null` || `upload.exclude` | `add-resource` 默认排除模式(CSV) | `null` |+| `upload.mode` | 临时上传后端:`"local"`(仅当前实例本地磁盘)或 `"shared"`(分布式共享存储,当消费请求可能落到不同实例时必需)。可通过 `OPENVIKING_UPLOAD_MODE` 单次覆盖。 | `null`(使用服务端 `temp_upload.default_mode`,默认仍为 `"local"`) |本地目录上传会默认遵循 `.gitignore`(根目录和子目录,含 `!` 反向规则)。`ignore_dirs/include/exclude` 会在此基础上进一步过滤。@@ -997,7 +999,12 @@ openviking add-resource ./docs --exclude "*.tmp""port": 1933,"auth_mode": "api_key","root_api_key": "your-secret-root-key",- "cors_origins": ["*"]+ "cors_origins": ["*"],+ "temp_upload": {+ "default_mode": "local",+ "shared_max_size_bytes": 536870912,+ "shared_prefix": "viking://upload"+ }}}```@@ -1009,6 +1016,9 @@ openviking add-resource ./docs --exclude "*.tmp"| `auth_mode` | str | 认证模式:`"api_key"` 或 `"trusted"`。默认值为 `"api_key"` | `"api_key"` || `root_api_key` | str | Root API Key。在 `api_key` 模式下启用多租户认证;在 `trusted` 模式下它只是可选附加保护,不负责解析普通用户身份 | `null` || `cors_origins` | list | CORS 允许的来源 | `["*"]` |+| `temp_upload.default_mode` | str | `POST /api/v1/resources/temp_upload` 的服务端默认模式(客户端未显式传 `upload_mode` 时使用):`"local"`(仅当前实例本地磁盘,单机默认行为)或 `"shared"`(分布式共享存储,多副本部署可跨实例消费)。 | `"local"` |+| `temp_upload.shared_max_size_bytes` | int | `shared` 模式下接受的最大文件大小(字节)。超过此阈值的请求会在写入对象存储之前被拒绝。 | `536870912`(512 MiB) |+| `temp_upload.shared_prefix` | str | 分配 shared `temp_file_id` 对象时使用的 URI 前缀。 | `"viking://upload"` |`api_key` 模式使用 API Key 认证,也是默认模式;`trusted` 模式信任上游网关或受信调用方注入的 `X-OpenViking-Account` / `X-OpenViking-User` 请求头。