feat(release): update to version 0.6.2 with new features and improvements
This commit is contained in:
+24
@@ -260,5 +260,29 @@ Wiki 模式允许 Agent 根据原始文档自动生成并维护一套结构化
|
||||
|
||||
0.6.1 引入了系统管理员与统一平台设置面板(含平台审计日志),与租户内 RBAC 区分:系统管理员管理的是「平台级」配置,而非单个租户内的资源。首次启用需通过系统管理员 bootstrap 流程晋升首个管理员;撤销管理员权限有安全防护(避免误撤导致无人可管)。相关迁移为 `000053_system_admin_and_settings`。
|
||||
|
||||
## 18. 上传时如何自定义解析配置(process_config)?
|
||||
|
||||
0.6.2 起,文件 / URL / 文件夹上传可携带 `process_config`(`KnowledgeProcessOverrides`),在**本次批次**内覆盖知识库默认的解析引擎、分块、多模态(VLM / ASR)、问题生成、图谱抽取等设置,而不会改动 KB 全局配置。Web UI 在上传前会弹出确认对话框供调整;API 与 `weknora doc upload` 传同名 JSON 即可。
|
||||
|
||||
- **与 KB 默认配置的关系**:未传的字段沿用 KB 默认值;`graph_enabled` 仅在 `extract_config.enabled` 为 true 时生效。
|
||||
- **重新解析**:`POST /knowledge/:id/reparse` 可在 body 中传 `process_config` 以新配置重跑解析,覆盖项会写入 `knowledge.metadata.process_overrides`。
|
||||
- **图片 / 音频校验**:批次含图片时需 KB 已配置 VLM;含音频时需已配置 ASR,否则上传会被拒绝。
|
||||
- 详见 [`docs/api/knowledge.md`](./api/knowledge.md)。
|
||||
|
||||
## 19. 升级到 0.6.2 后 `weknora` CLI 登录或 MCP 工具报错?
|
||||
|
||||
0.6.2 随附 **CLI v0.9**(破坏性变更),常见迁移:
|
||||
|
||||
- **`auth login` 不再创建 profile**:先 `weknora profile add <name> --host <url> --use`,再 `weknora auth login`;切换 profile 用全局 `--profile <name>`。
|
||||
- **`auth logout` / `auth refresh` 去掉 `--name`**:作用于当前 active profile。
|
||||
- **MCP 工具 `agent_invoke` 已更名为 `session_ask`**:外部 MCP 客户端需刷新工具 schema。
|
||||
- **`agent create --kb` 改为 `--attach-kb`**;`doc delete --all` 与 `search chunks` / `search docs` 的 `--kb` 必填且支持名称或 ID。
|
||||
- 新增 `weknora session stop <session-id>` 可中止进行中的 Agent 运行;仓库内附带 `weknora-rag-search` / `weknora-shared` 内置 Skills。
|
||||
- 详见 [`cli/CHANGELOG.md`](../cli/CHANGELOG.md)。
|
||||
|
||||
## 20. pgvector 检索变慢或刚升级后需要做什么?
|
||||
|
||||
0.6.2 新增迁移 `000059_embeddings_hnsw_1024`,为 **1024 维** embedding(如 bge-m3)在 PostgreSQL pgvector 上创建 HNSW 索引。服务启动会自动执行迁移;若你使用其他维度,该索引可能不适用,需按自身 embedding 维度另行调优。升级后首次大批量入库期间索引构建可能占用额外 I/O,属正常现象。
|
||||
|
||||
## P.S.
|
||||
如果以上方式未解决问题,请在issue中描述您的问题,并提供必要的日志信息辅助我们进行问题排查
|
||||
|
||||
+60
-4
@@ -6282,6 +6282,14 @@ const docTemplate = `{
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "可选的处理配置覆盖:{\\",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -13198,10 +13206,6 @@ const docTemplate = `{
|
||||
"description": "Chunk size",
|
||||
"type": "integer"
|
||||
},
|
||||
"enable_multimodal": {
|
||||
"description": "EnableMultimodal (deprecated, kept for backward compatibility with old data)",
|
||||
"type": "boolean"
|
||||
},
|
||||
"enable_parent_child": {
|
||||
"description": "EnableParentChild enables two-level parent-child chunking strategy.\nWhen enabled, large parent chunks provide context while small child chunks\nare used for vector matching. Retrieval matches on child but returns parent content.",
|
||||
"type": "boolean"
|
||||
@@ -14642,6 +14646,38 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_Tencent_WeKnora_internal_types.KnowledgeProcessOverrides": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"asr_config": {
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.ASRConfig"
|
||||
},
|
||||
"chunking_config": {
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.ChunkingConfig"
|
||||
},
|
||||
"enable_multimodel": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"extract_config": {
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.ExtractConfig"
|
||||
},
|
||||
"graph_enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"parser_engine_rules": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.ParserEngineRule"
|
||||
}
|
||||
},
|
||||
"question_generation_config": {
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.QuestionGenerationConfig"
|
||||
},
|
||||
"vlm_config": {
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.VLMConfig"
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_Tencent_WeKnora_internal_types.ListMembersResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -14910,6 +14946,9 @@ const docTemplate = `{
|
||||
"content": {
|
||||
"type": "string"
|
||||
},
|
||||
"process_config": {
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.KnowledgeProcessOverrides"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -16630,6 +16669,14 @@ const docTemplate = `{
|
||||
"description": "Tool name",
|
||||
"type": "string"
|
||||
},
|
||||
"provider_metadata": {
|
||||
"description": "Provider-specific tool-call state for replay",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.ToolCallMetadata"
|
||||
}
|
||||
]
|
||||
},
|
||||
"reflection": {
|
||||
"description": "Agent's reflection on this tool call result (if enabled)",
|
||||
"type": "string"
|
||||
@@ -16644,6 +16691,15 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_Tencent_WeKnora_internal_types.ToolCallMetadata": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_Tencent_WeKnora_internal_types.ToolResult": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.6 MiB |
+60
-4
@@ -6275,6 +6275,14 @@
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "可选的处理配置覆盖:{\\",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -13191,10 +13199,6 @@
|
||||
"description": "Chunk size",
|
||||
"type": "integer"
|
||||
},
|
||||
"enable_multimodal": {
|
||||
"description": "EnableMultimodal (deprecated, kept for backward compatibility with old data)",
|
||||
"type": "boolean"
|
||||
},
|
||||
"enable_parent_child": {
|
||||
"description": "EnableParentChild enables two-level parent-child chunking strategy.\nWhen enabled, large parent chunks provide context while small child chunks\nare used for vector matching. Retrieval matches on child but returns parent content.",
|
||||
"type": "boolean"
|
||||
@@ -14635,6 +14639,38 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_Tencent_WeKnora_internal_types.KnowledgeProcessOverrides": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"asr_config": {
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.ASRConfig"
|
||||
},
|
||||
"chunking_config": {
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.ChunkingConfig"
|
||||
},
|
||||
"enable_multimodel": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"extract_config": {
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.ExtractConfig"
|
||||
},
|
||||
"graph_enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"parser_engine_rules": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.ParserEngineRule"
|
||||
}
|
||||
},
|
||||
"question_generation_config": {
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.QuestionGenerationConfig"
|
||||
},
|
||||
"vlm_config": {
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.VLMConfig"
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_Tencent_WeKnora_internal_types.ListMembersResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -14903,6 +14939,9 @@
|
||||
"content": {
|
||||
"type": "string"
|
||||
},
|
||||
"process_config": {
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.KnowledgeProcessOverrides"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -16623,6 +16662,14 @@
|
||||
"description": "Tool name",
|
||||
"type": "string"
|
||||
},
|
||||
"provider_metadata": {
|
||||
"description": "Provider-specific tool-call state for replay",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.ToolCallMetadata"
|
||||
}
|
||||
]
|
||||
},
|
||||
"reflection": {
|
||||
"description": "Agent's reflection on this tool call result (if enabled)",
|
||||
"type": "string"
|
||||
@@ -16637,6 +16684,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_Tencent_WeKnora_internal_types.ToolCallMetadata": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_Tencent_WeKnora_internal_types.ToolResult": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
+38
-4
@@ -372,10 +372,6 @@ definitions:
|
||||
chunk_size:
|
||||
description: Chunk size
|
||||
type: integer
|
||||
enable_multimodal:
|
||||
description: EnableMultimodal (deprecated, kept for backward compatibility
|
||||
with old data)
|
||||
type: boolean
|
||||
enable_parent_child:
|
||||
description: |-
|
||||
EnableParentChild enables two-level parent-child chunking strategy.
|
||||
@@ -1519,6 +1515,27 @@ definitions:
|
||||
description: 最后更新时间
|
||||
type: integer
|
||||
type: object
|
||||
github_com_Tencent_WeKnora_internal_types.KnowledgeProcessOverrides:
|
||||
properties:
|
||||
asr_config:
|
||||
$ref: '#/definitions/github_com_Tencent_WeKnora_internal_types.ASRConfig'
|
||||
chunking_config:
|
||||
$ref: '#/definitions/github_com_Tencent_WeKnora_internal_types.ChunkingConfig'
|
||||
enable_multimodel:
|
||||
type: boolean
|
||||
extract_config:
|
||||
$ref: '#/definitions/github_com_Tencent_WeKnora_internal_types.ExtractConfig'
|
||||
graph_enabled:
|
||||
type: boolean
|
||||
parser_engine_rules:
|
||||
items:
|
||||
$ref: '#/definitions/github_com_Tencent_WeKnora_internal_types.ParserEngineRule'
|
||||
type: array
|
||||
question_generation_config:
|
||||
$ref: '#/definitions/github_com_Tencent_WeKnora_internal_types.QuestionGenerationConfig'
|
||||
vlm_config:
|
||||
$ref: '#/definitions/github_com_Tencent_WeKnora_internal_types.VLMConfig'
|
||||
type: object
|
||||
github_com_Tencent_WeKnora_internal_types.ListMembersResponse:
|
||||
properties:
|
||||
members:
|
||||
@@ -1705,6 +1722,8 @@ definitions:
|
||||
type: string
|
||||
content:
|
||||
type: string
|
||||
process_config:
|
||||
$ref: '#/definitions/github_com_Tencent_WeKnora_internal_types.KnowledgeProcessOverrides'
|
||||
status:
|
||||
type: string
|
||||
tag_id:
|
||||
@@ -3005,6 +3024,10 @@ definitions:
|
||||
name:
|
||||
description: Tool name
|
||||
type: string
|
||||
provider_metadata:
|
||||
allOf:
|
||||
- $ref: '#/definitions/github_com_Tencent_WeKnora_internal_types.ToolCallMetadata'
|
||||
description: Provider-specific tool-call state for replay
|
||||
reflection:
|
||||
description: Agent's reflection on this tool call result (if enabled)
|
||||
type: string
|
||||
@@ -3013,6 +3036,12 @@ definitions:
|
||||
- $ref: '#/definitions/github_com_Tencent_WeKnora_internal_types.ToolResult'
|
||||
description: Execution result (contains Output)
|
||||
type: object
|
||||
github_com_Tencent_WeKnora_internal_types.ToolCallMetadata:
|
||||
additionalProperties:
|
||||
items:
|
||||
type: integer
|
||||
type: array
|
||||
type: object
|
||||
github_com_Tencent_WeKnora_internal_types.ToolResult:
|
||||
properties:
|
||||
data:
|
||||
@@ -8474,6 +8503,11 @@ paths:
|
||||
name: id
|
||||
required: true
|
||||
type: string
|
||||
- description: 可选的处理配置覆盖:{\
|
||||
in: body
|
||||
name: body
|
||||
schema:
|
||||
type: object
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
|
||||
Reference in New Issue
Block a user