This commit is contained in:
Cold
2026-01-16 13:42:15 +08:00
committed by 张斌
parent 1fe3f127c3
commit 138b81640c
3 changed files with 67 additions and 31 deletions

View File

@@ -116,3 +116,13 @@ func GetHistoryContextLimit() int64 {
ctx := context.Background()
return g.Cfg().MustGet(ctx, "history.contextLimit", 5).Int64() // 默认5轮对话
}
// DocSyncMessage 文档同步消息结构RAGFlow与MongoDB同步
type DocSyncMessage struct {
DocId string `json:"docId"` // MongoDB文档ID
RagflowDocId string `json:"ragflowDocId"` // RAGFlow文档ID
TenantId string `json:"tenantId"` // 租户ID
DocType string `json:"docType"` // 文档类型speechcraft/product
Action string `json:"action"` // 操作类型sync_ragflow_id
Timestamp int64 `json:"timestamp"` // 时间戳
}