This commit is contained in:
@@ -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"` // 时间戳
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user