Persistenz und Performance optimiert
release-tag / release-image (push) Successful in 1m40s

This commit is contained in:
2026-07-29 08:56:04 +02:00
parent 720b2aecdd
commit 827c348e69
9 changed files with 1002 additions and 84 deletions
+3 -1
View File
@@ -72,6 +72,7 @@ func main() {
k, err := knowledge.NewStore(cfg.KnowledgeDir, cfg.DataDir, o, cfg.RAGEnabled, cfg.KnowledgeAllowedSources, knowledge.ScoringConfig{
SemanticWeight: cfg.KnowledgeSemanticWeight, TitleWeight: cfg.KnowledgeTitleWeight, LexicalWeight: cfg.KnowledgeLexicalWeight, KeywordWeight: cfg.KnowledgeKeywordWeight, CategoryWeight: cfg.KnowledgeCategoryWeight,
EmbeddingProfile: embeddingProfile, EmbeddingIdentity: cfg.OllamaEmbeddingModel, ChunkWords: cfg.KnowledgeChunkWords, ChunkOverlap: cfg.KnowledgeChunkOverlapWords, MaxChunksPerDoc: cfg.KnowledgeMaxChunksPerDoc, MaxQueryChunks: cfg.KnowledgeMaxQueryChunks,
IndexMode: cfg.KnowledgeIndexMode, EmbedBatchSize: cfg.KnowledgeEmbedBatchSize, IndexScanInterval: cfg.KnowledgeIndexScanInterval,
CategoryMode: cfg.KnowledgeCategoryMode, CategoryMapFile: cfg.KnowledgeCategoryMapFile, IgnoreGlobs: cfg.KnowledgeIgnoreGlobs,
})
if err != nil {
@@ -132,7 +133,8 @@ func main() {
m.SetKnowledgeDocs(k.Count())
}
svc.Start(ctx)
slog.Info("ticket processing started", "knowledge_docs", k.Count())
k.StartIncrementalSync(ctx, cfg.KnowledgeIndexScanInterval)
slog.Info("ticket processing started", "knowledge_docs", k.Count(), "knowledge_index_mode", cfg.KnowledgeIndexMode)
}()
<-ctx.Done()
shutdownCtx, c := context.WithTimeout(context.Background(), 10*time.Second)