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
// Package postgres implements retrieval against its configured vector backend.
package postgres
import "context"
func (g *pgRepository) MoveKnowledgeIndices(
ctx context.Context,
sourceKB, targetKB, knowledgeID string,
_ []string,
_ int,
_ string,
) error {
return g.db.WithContext(ctx).Model(&pgVector{}).
Where("knowledge_base_id = ? AND knowledge_id = ?", sourceKB, knowledgeID).
Updates(map[string]any{"knowledge_base_id": targetKB, "tag_id": ""}).Error
}