Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
feat: 添加 SeqID 自动递增标签
wizardchena4b7c2450448
diff --git a/internal/types/chunk.go b/internal/types/chunk.goindex fa3cf7ea3..eb16a057f 100644--- a/internal/types/chunk.go+++ b/internal/types/chunk.go@@ -103,7 +103,7 @@ type Chunk struct {// Unique identifier of the chunk, using UUID formatID string `json:"id" gorm:"type:varchar(36);primaryKey"`// SeqID is an auto-increment integer ID for external API usage (FAQ entries)- SeqID int64 `json:"seq_id" gorm:"type:bigint;uniqueIndex"`+ SeqID int64 `json:"seq_id" gorm:"type:bigint;uniqueIndex;autoIncrement"`// Tenant ID, used for multi-tenant isolationTenantID uint64 `json:"tenant_id"`// ID of the parent knowledge, associated with the Knowledge modeldiff --git a/internal/types/tag.go b/internal/types/tag.goindex 778f6bc84..55c3da38f 100644--- a/internal/types/tag.go+++ b/internal/types/tag.go@@ -9,7 +9,7 @@ type KnowledgeTag struct {// Unique identifier of the tag (UUID)ID string `json:"id" gorm:"type:varchar(36);primaryKey"`// SeqID is an auto-increment integer ID for external API usage- SeqID int64 `json:"seq_id" gorm:"type:bigint;uniqueIndex"`+ SeqID int64 `json:"seq_id" gorm:"type:bigint;uniqueIndex;autoIncrement"`// Tenant IDTenantID uint64 `json:"tenant_id"`// Knowledge base ID that this tag belongs to