feat: release v0.6.1 with new document parsing trace timeline, OpenSearch vector store driver, YAML-based built-in model configuration, and system admin settings. Includes UI redesigns, new-user onboarding guide, and various improvements and bug fixes. See CHANGELOG.md for details.

This commit is contained in:
wizardchen
2026-06-05 16:33:23 +08:00
committed by lyingbug
parent 9e898ae72c
commit 946ff5557a
16 changed files with 2953 additions and 34 deletions
+16
View File
@@ -353,6 +353,22 @@ if err != nil {
fmt.Printf("Parse Status: %s\n", knowledge.ParseStatus) // "cancelled"
```
### 示例:查看文档解析追踪(Span 树)
```go
// 获取文档解析流水线的 Span 树(root → stage → subspan)
// - attempt 传 0 表示获取最新一次解析尝试
// - 始终返回 5 个标准阶段:docreader / chunking / embedding / multimodal / postprocess
trace, err := apiClient.GetKnowledgeProcessingSpans(context.Background(), knowledgeID, 0)
if err != nil {
// 处理错误
}
fmt.Printf("ParseStatus=%s CurrentStage=%s\n", trace.ParseStatus, trace.CurrentStage)
for _, stage := range trace.Trace.Children {
fmt.Printf("- %s: %s (%dms)\n", stage.Name, stage.Status, stage.DurationMs)
}
```
### 示例:获取会话消息
```go