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
refactor(knowledgebase): remove TogglePinKnowledgeBase method from KnowledgeBaseRepository interface
wizardchen1506c604e153
diff --git a/internal/types/interfaces/knowledgebase.go b/internal/types/interfaces/knowledgebase.goindex cae7f6a5a..322d41e41 100644--- a/internal/types/interfaces/knowledgebase.go+++ b/internal/types/interfaces/knowledgebase.go@@ -207,9 +207,6 @@ type KnowledgeBaseRepository interface {// - Possible errors such as record not existing, database errors, etc.DeleteKnowledgeBase(ctx context.Context, id string) error- // TogglePinKnowledgeBase toggles the pin status of a knowledge base- TogglePinKnowledgeBase(ctx context.Context, id string, tenantID uint64) (*types.KnowledgeBase, error)-// CountByVectorStoreID counts active KBs bound to the given vector store// within a tenant scope. Accepts a *gorm.DB handle so callers can share a// transaction (e.g., the VectorStore delete guard's row-lock context) or