33 lines
784 B
Go
33 lines
784 B
Go
package consts
|
|
|
|
// 文档状态
|
|
const (
|
|
DocumentStatusPending = 0 // 待处理
|
|
DocumentStatusParsing = 1 // 解析中(读取文件 + 分块)
|
|
DocumentStatusEmbedding = 2 // 向量生成中
|
|
DocumentStatusKgBuilding = 3 // 知识图谱构建中
|
|
DocumentStatusDone = 4 // 已完成
|
|
DocumentStatusFailed = 5 // 失败
|
|
)
|
|
|
|
// 解析任务状态
|
|
const (
|
|
TaskStatusPending = 0 // 待处理
|
|
TaskStatusRunning = 1 // 处理中
|
|
TaskStatusDone = 2 // 完成
|
|
TaskStatusFailed = 3 // 失败
|
|
)
|
|
|
|
// 任务类型
|
|
const (
|
|
TaskTypeParse = "parse" // 解析+向量化
|
|
TaskTypeReembed = "reembed" // 重新向量化(切换 embedding 模型后)
|
|
)
|
|
|
|
// 消息角色
|
|
const (
|
|
MsgRoleUser = "user"
|
|
MsgRoleAssistant = "assistant"
|
|
MsgRoleSystem = "system"
|
|
)
|