.gitignore
This commit is contained in:
21
rag/enio/task_enum.go
Normal file
21
rag/enio/task_enum.go
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
package enio
|
||||||
|
|
||||||
|
// TaskPriority 任务优先级
|
||||||
|
type TaskPriority string
|
||||||
|
|
||||||
|
const (
|
||||||
|
TaskPriorityLow TaskPriority = "low" // 低优先级
|
||||||
|
TaskPriorityMedium TaskPriority = "medium" // 中优先级
|
||||||
|
TaskPriorityHigh TaskPriority = "high" // 高优先级
|
||||||
|
TaskPriorityUrgent TaskPriority = "urgent" // 紧急
|
||||||
|
)
|
||||||
|
|
||||||
|
// TaskType 任务类型
|
||||||
|
type TaskType string
|
||||||
|
|
||||||
|
const (
|
||||||
|
TaskTypeDocumentIngestion TaskType = "document_ingestion" // 文档摄入任务
|
||||||
|
TaskTypeVectorIngestion TaskType = "vector_ingestion" // 向量摄入任务
|
||||||
|
TaskTypeIndexCreation TaskType = "index_creation" // 索引创建任务
|
||||||
|
TaskTypeQAProcessing TaskType = "qa_processing" // 问答处理任务
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user