JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix: 修复配置信息文档
xiaoxiawangb78c14567e23
diff --git a/docs/en/Configuration.md b/docs/en/Configuration.mdindex f58bc98c90..7d6f3f6095 100644--- a/docs/en/Configuration.md+++ b/docs/en/Configuration.md@@ -6,7 +6,7 @@ This document details each configuration option in the JiuwenSwarm frontend pane----## 1. Configuration entry+## 1. Configuration EntryOpen **Configuration** from the left navigation bar to view and edit settings for models, third-party services, free search, and more. Click **Save** after changes; whether you need to wait for services to become ready depends on your deployment.@@ -20,6 +20,7 @@ The configuration panel contains the following main sections:- **Self-Evolution Configuration**: Automatic skill improvement (see [5. Self-Evolution Configuration](#5-self-evolution-configuration))- **Context Compression**: Dialogue history management (see [6. Context Compression](#6-context-compression))- **Tool Security Guardrails**: Tool invocation permission checks (see [7. Tool Security Guardrails](#7-tool-security-guardrails))+- **Memory Sensitive-Info Filtering**: Memory system privacy protection settings (see [8. Memory Sensitive-Info Filtering](#8-memory-sensitive-info-filtering))The panel also includes **Free Search Engine Configuration**, **Multi-Agent / Team Configuration**, **A2UI**, **Agentic Skill Retrieval**, **Memory Sensitive-Info Filtering**, and **Email Configuration** sections. Configure them as needed.@@ -82,7 +83,6 @@ Each model entry contains the following fields:| Field | Required | Description ||------|---------|------|| `model_name` | Yes | Model name at the API layer (e.g., `gpt-4o`, `deepseek-chat`) |-| `alias` | No | Display name / switch identifier; defaults to `model_name` if empty || `api_base` | Yes | API endpoint for this model || `api_key` | Yes | API key for this model || `model_provider` | Yes | Provider (e.g., `OpenAI`, `DeepSeek`) |@@ -98,13 +98,13 @@ The first item in the list is the default model; you can drag to reorder or clic### 2.4 Multimodal Model Usage Examples-Once video, audio, or vision models are configured, JiuwenSwarm enables corresponding multimodal features automatically.+Once video, audio, or vision models are configured, JiuwenSwarm enables corresponding multimodal features automatically. Below are application scenarios for each model type:#### Video ModelUsing **GLM-4.6V-Flash11** video understanding API as an example:-When you send a video file to JiuwenSwarm, the system will invoke the video model for analysis:+When you send a video file to JiuwenSwarm and ask a question, the system will invoke the video model for analysis:```User: Analyze this video and list the main scenes.@@ -152,7 +152,7 @@ JiuwenSwarm: Extracted sales data:Showing an upward trend...```-+---@@ -170,21 +170,11 @@ Embedding models convert text into vector representations and form the core of J### 3.2 Configuration Fields-| Field | Description | Remarks |-| ------------------ | ------------------------------- | ----------------------------------------- |-| `embed_api_base` | Base URL for embedding API | Embedding service API endpoint |-| `embed_api_key` | Embedding service API key | Obtained from the service provider |-| `embed_model` | Embedding model name | Chinese-optimized embedding recommended |--#### Configuration Example--**SiliconFlow**--```-embed_api_base: https://api.siliconflow.cn/v1-embed_api_key: sk-your-siliconflow-api-key-embed_model: BAAI/bge-large-zh-v1.5-```+| Field | Description | Reference Format | Remarks |+| ------------------ | ------------------------------- | --------------------------------------- | ----------------------------------------- |+| `embed_api_base` | Base URL for embedding API | `https://api.siliconflow.cn/v1` | Embedding service API endpoint |+| `embed_api_key` | Embedding service API key | `sk-xxxxxxxxxxxxxxxx` | Obtained from the service provider |+| `embed_model` | Embedding model name | `BAAI/xxx` | Chinese-optimized embedding recommended |---@@ -194,14 +184,14 @@ This section summarizes configuration for search and external services. All item| Field | Description | Reference || --- | --- | --- |-| `jina_api_key` | Jina; fetch and some search flows | [Jina](https://jina.ai/) |+| `jina_api_key` | Jina; web scraping and some search capabilities | [Jina](https://jina.ai/) || `bocha_api_key` | Bocha Web Search | [Bocha Open Platform](https://open.bochaai.com/) |-| `serper_api_key` | Serper | [Serper](https://serper.dev/) |+| `serper_api_key` | Serper Search | [Serper](https://serper.dev/) || `perplexity_api_key` | Perplexity | [Perplexity](https://www.perplexity.ai/) |-| `github_token` | GitHub; SkillNet, etc. | [GitHub tokens](https://github.com/settings/tokens) |+| `github_token` | GitHub; SkillNet, etc. | [GitHub Tokens](https://github.com/settings/tokens) || `teamskills_user_token` | TeamSkillsHub user token | [TeamSkillsHub](https://teamskills.openjiuwen.com) |-> ⚠️ **Note**: All optional. If unset, related features may be unavailable or fall back; exact behavior depends on your product version.+> ⚠️ **Note**: All optional. If unset, related features may be unavailable or fall back to degraded strategies; exact behavior depends on your product version.Two additional related configuration groups:@@ -223,7 +213,7 @@ The frontend shows two options under **Self-Evolution Configuration**:- **Auto-detect evolution signals**: disabled by default. When enabled, the system scans failures, corrections, and other evolution signals after chat and tool execution. This maps to `react.evolution.auto_scan`; env `EVOLUTION_AUTO_SCAN` takes precedence.- **Auto-suggest new skill creation**: disabled by default. When enabled, the system can propose creating a new Skill when no suitable Skill exists. This maps to `react.evolution.skill_create`; env `SKILL_CREATE` takes precedence.-> 📖 For details on the self-evolution mechanism, see [Skill self-evolution](SkillSelfEvolution.md).+> 📖 For details on the self-evolution mechanism, see [Skill Self-Evolution](SkillSelfEvolution.md).---@@ -247,7 +237,25 @@ When enabled, the system will:2. Archive low-priority content when thresholds are reached3. Preserve lightweight indexes to free space for ongoing tasks-> 📖 For details, see [Context Compression & Offloading](ContextCompression.md).+### Compute Affinity (KV Release)++**Compute Affinity (KV Release)** is an advanced optimization feature of context compression for managing GPU memory usage.++- **Field**: `context_engine.kv_release_enabled`+- **Default**: `false` (disabled)+- **Purpose**: When enabled, the system dynamically releases KV Cache (key-value cache) that is no longer needed during conversations, saving GPU memory and allowing longer dialogue contexts.++**KV Cache Explanation**:+- KV Cache is a cache used by large language models during inference to store intermediate computation results+- As conversation rounds increase, KV Cache continues to grow, consuming significant GPU memory+- With KV Release enabled, the system intelligently determines and releases cache data from historical conversations that are no longer needed++**Applicable Scenarios**:+- Long-running conversations requiring extensive history retention+- Environments with limited GPU memory+- Tasks requiring ultra-long context processing++> 📖 For details on the context compression mechanism, see [Context Compression & Offloading](ContextCompression.md).---@@ -295,11 +303,37 @@ permissions:----## 8. Advanced Configuration+## 8. Memory Sensitive-Info Filtering++Memory sensitive-info filtering protects user privacy by preventing sensitive information from being written to the memory system.++### Toggle++- **Field**: `memory.filter_enabled`+- **Default**: `true` (enabled)+- **Purpose**: When enabled, the system automatically detects and filters sensitive information before writing to memory.++### Filtered Content Types++The system automatically identifies and filters the following types of sensitive information:++| Type | Description | Example |+| --- | --- | --- |+| **Personal Identity Information** | Names, ID numbers, phone numbers, etc. | Zhang San, 110101199001011234 |+| **Bank Account Information** | Bank card numbers, Alipay/WeChat accounts | 622202\*\*\*\*\*1234 |+| **Address Information** | Detailed home or company addresses | No. X Street, Chaoyang District, Beijing |+| **Email Addresses** | Personal or work email | [email protected] |+| **Passwords / Keys** | Various passwords, API keys, etc. | password123, sk-xxxx |++> 📖 For details on the memory system, see the [Memory](Memory.md) documentation.++---++## 9. Advanced ConfigurationBeyond the **Configuration** page, the product may use a **main configuration** for timeouts, temperature, heartbeat interval, context thresholds, and toggles that work together with **context compression**, **permissions**, **memory restrictions**, and similar UI switches. **This document does not state where those files live on disk**; for offline edits or bulk rollout, contact your administrator.-### 8.1 Common logical keys (conceptual paths)+### 9.1 Common logical keys (conceptual paths)These are **conceptual** paths in the main configuration for cross-reference with ops or release notes; they are **not** a one-to-one list of every UI field.@@ -315,11 +349,11 @@ These are **conceptual** paths in the main configuration for cross-reference wit<a id="dotenv-configuration"></a>-### 8.2 Runtime parameters outside the Configuration page+### 9.2 Runtime parameters outside the Configuration pageFine-grained options for browser automation, network proxies, or some search paths may be supplied by the **runtime or deployment template** and **may not** appear on the **Configuration** page. Typical users only need required UI fields and business keys; leave the rest to admins or ops.-### 8.3 Precedence (conceptual)+### 9.3 Precedence (conceptual)Generally, from highest to lowest: **values you save in the web Configuration UI** → **environment-injected variables** → **built-in product defaults**. Exact behavior depends on your version and deployment.@@ -327,7 +361,7 @@ Generally, from highest to lowest: **values you save in the web Configuration UI----## 9. FAQ+## FAQ### Q: Configurations not taking effect after saving?@@ -341,36 +375,4 @@ A: Model information is displayed on the configuration panel. You may also checkA: No. Video, audio, and vision models are optional and only required for their respective multimodal functions.-### Q: Which embedding model is recommended?--A: `BAAI/bge-large-zh-v1.5` is recommended for high-quality Chinese embeddings. Other models may be selected based on language requirements.--### Q: How to test if the configured model is working?--A: After configuration, you can test the model with these methods:--1. **Send a simple message**: Send a simple message like "Hello" via the web frontend and check if you receive a normal response-2. **Check logs**: Review backend logs to confirm successful model calls without errors-3. **Test multimodal**: If multimodal models are configured, send images/audio/video to test----### Q: How to troubleshoot configuration errors?--A: When configuration issues occur, follow these steps:--1. **Check API Key**: Verify the API Key is correct, not expired, and has sufficient quota-2. **Check API Base**: Verify the API address is correct, note that `/chat/completions` suffix should not be included-3. **Check Model Name**: Verify the model name is correct, different providers may have different naming conventions-4. **View Logs**: Backend logs will show specific error messages like authentication failure, model not found, etc.--Common errors and solutions:--| Error Message | Possible Cause | Solution |-| ------------ | -------------- | -------- |-| `401 Unauthorized` | Invalid or expired API Key | Check and update API Key |-| `404 Not Found` | Incorrect API address or model name | Check api_base and model configuration |-| `429 Too Many Requests` | Rate limit exceeded | Wait and retry, or upgrade plan |-| `Connection Error` | Network issue or API address unreachable | Check network connection and API address |----diff --git "a/docs/zh/\351\205\215\347\275\256\344\277\241\346\201\257.md" "b/docs/zh/\351\205\215\347\275\256\344\277\241\346\201\257.md"index 1d3e7239ec..946a46b8ed 100644--- "a/docs/zh/\351\205\215\347\275\256\344\277\241\346\201\257.md"+++ "b/docs/zh/\351\205\215\347\275\256\344\277\241\346\201\257.md"@@ -20,6 +20,7 @@ JiuwenSwarm 的配置信息是您与智能体交互的基础设置。通过合- **自演进配置**:技能自动改进能力(详见 [五、自演进配置](#五自演进配置))- **上下文压缩**:对话历史管理策略(详见 [六、上下文压缩](#六上下文压缩))- **工具安全护栏**:工具调用权限检查(详见 [七、工具安全护栏](#七工具安全护栏))+- **敏感信息过滤**:记忆系统隐私保护设置(详见 [八、记忆系统敏感信息过滤](#八记忆系统敏感信息过滤))此外,面板中还包含 **免费搜索引擎配置**、**多Agent/Team 配置**、**A2UI**、**Agentic 技能检索**、**记忆系统敏感信息过滤**、**邮箱配置** 等区域,按需配置即可。@@ -82,7 +83,6 @@ model_provider: OpenAI| 字段 | 是否必填 | 说明 ||------|---------|------|| `model_name` | 必填 | 模型在 API 层的名称(如 `gpt-4o`、`deepseek-chat`) |-| `alias` | 选填 | 显示名称 / 切换标识符;不填时自动取 `model_name` 的值 || `api_base` | 必填 | 该模型的 API 地址 || `api_key` | 必填 | 该模型的 API 密钥 || `model_provider` | 必填 | 提供商(如 `OpenAI`、`DeepSeek`) |@@ -95,7 +95,6 @@ model_provider: OpenAI- 切换模型时(Web 下拉 / CLI `/model <name>`)可用 `alias` 或 `model_name` 作为标识符。列表首位为默认使用的模型;可在 UI 中拖拽排序或点击"设为默认"调整首位。-### 2.4 多模态模型效果展示当您配置了视频、音频或视觉模型后,JiuwenSwarm 将自动启用相应的多模态能力。以下是各模型的应用场景示例:@@ -240,6 +239,24 @@ Embed 模型的主要作用:2. 当超出阈值时,自动识别并归档"大而次要"的内容3. 保留简要索引,为当前任务腾出空间+### 算力亲和(KV 释放)++**算力亲和(KV 释放)** 是上下文压缩的高级优化功能,用于管理 GPU 显存使用。++- **配置项**:`context_engine.kv_release_enabled`+- **默认值**:`false`(关闭)+- **作用**:启用后,系统会在对话过程中动态释放不再需要的 KV Cache(键值缓存),以节省 GPU 显存空间,允许处理更长的对话上下文++**KV Cache 说明**:+- KV Cache 是大语言模型推理时用于存储中间计算结果的缓存+- 随着对话轮次增加,KV Cache 会持续增长,占用大量显存+- 启用 KV 释放后,系统会智能判断并释放历史对话中不再需要的缓存数据++**适用场景**:+- 长时间对话场景,需要保持大量历史记录+- GPU 显存有限的环境+- 需要处理超长上下文的任务+> 📖 **详情**:关于上下文压缩机制的详细说明,请参考 [上下文压缩卸载](上下文压缩卸载.md) 文档。---@@ -288,11 +305,37 @@ permissions:----## 八、高级配置+## 八、记忆系统敏感信息过滤++记忆系统敏感信息过滤配置用于保护用户隐私,防止敏感信息被写入记忆系统。++### 开关说明++- **配置项**:`memory.filter_enabled`+- **默认值**:`true`(开启)+- **作用**:启用后,系统会在写入记忆前自动检测并过滤敏感信息++### 过滤内容类型++系统会自动识别并过滤以下类型的敏感信息:++| 类型 | 说明 | 示例 |+| --- | --- | --- |+| **个人身份信息** | 姓名、身份证号、手机号等 | 张三、110101199001011234 |+| **银行账户信息** | 银行卡号、支付宝/微信账号 | 622202******1234 |+| **地址信息** | 详细住址、公司地址等 | 北京市朝阳区xxx街道xxx号 |+| **邮箱地址** | 个人或工作邮箱 | [email protected] |+| **密码/密钥** | 各类密码、API密钥等 | password123、sk-xxxx |++> 📖 **详情**:关于记忆系统的详细说明,请参考 [记忆](记忆.md) 文档。++---++## 九、高级配置除 **配置信息** 页中的表单项外,产品还可通过**主配置**调整超时、温度、心跳间隔、上下文窗口阈值等(与界面中的「上下文压缩」「权限」「记忆禁忌」等开关配合使用)。**本文不列出这些项在磁盘上的位置**;若您需要离线修改或批量下发,请咨询部署方或管理员。-### 8.1 主配置中常见的逻辑项(概念名)+### 9.1 主配置中常见的逻辑项(概念名)下列为**主配置**里常见的逻辑路径名称,仅供与运维文档或发行说明对照;**不是**「配置信息」页上的每一个字段。@@ -308,11 +351,11 @@ permissions:<a id="dotenv-configuration"></a>-### 8.2 与界面以外的运行参数+### 9.2 与界面以外的运行参数浏览器自动化、网络代理、部分搜索链路的细粒度开关等,可能由**运行环境或部署模板**提供,**不一定**出现在 **配置信息** 页。普通用户只需完成界面上的必填项与业务相关密钥即可;其余由管理员或运维处理。-### 8.3 配置生效的优先顺序(概念)+### 9.3 配置生效的优先顺序(概念)从高到低一般为:**您在 Web「配置信息」中保存的设置** → **运行环境注入的变量** → **产品内置默认**。具体行为以您使用的版本与部署方式为准。