2026-04-03 09:16:53 +08:00
|
|
|
|
package public
|
|
|
|
|
|
|
2026-04-10 13:12:19 +08:00
|
|
|
|
const GmqMsgPluginsName = "gmq_msg"
|
|
|
|
|
|
|
2026-04-09 15:58:05 +08:00
|
|
|
|
const KnowledgeLockEsKey = "rag_binary:knowledge:lock:knowledgeIdEs-%v"
|
|
|
|
|
|
const KnowledgeLockSqlKey = "rag_binary:knowledge:lock:knowledgeIdSql-%v"
|
|
|
|
|
|
const KnowledgeContentHashEsKey = "rag_binary:knowledge:knowledgeId:contentHashEs-%v"
|
|
|
|
|
|
const KnowledgeContentHashSqlKey = "rag_binary:knowledge:knowledgeId:contentHashSql-%v"
|
2026-04-03 09:16:53 +08:00
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
|
KnowledgeDocumentVectorStatusTopic = "knowledge:document:vector:status:stream"
|
|
|
|
|
|
KnowledgeDocumentVectorStatusConsumer = "knowledge-document-vector-status-consumer"
|
|
|
|
|
|
KnowledgeDocumentVectorStatusBatchSize = 1
|
|
|
|
|
|
KnowledgeDocumentVectorStatusAutoAck = false
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
const (
|
2026-04-10 13:12:19 +08:00
|
|
|
|
KnowledgeDocumentVectorTopic = "knowledge:document:vector:stream" // 请求 Stream 键名(与发消息的key一致)
|
|
|
|
|
|
KnowledgeDocumentVectorConsumer = "knowledge-document-vector-consumer" // 消费者名称(唯一标识)
|
|
|
|
|
|
KnowledgeDocumentVectorCount = 1 // 批处理大小(每次读取1条)
|
|
|
|
|
|
KnowledgeDocumentVectorAutoAck = false // ACK是否自动确认(true自动确认,false不确认)
|
2026-04-03 09:16:53 +08:00
|
|
|
|
)
|