Fixups to long memory, and avoid re-initing RAGDB recursively

Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
mudler
2024-12-18 12:41:18 +01:00
parent c2035c95c5
commit 735bab5e32
3 changed files with 16 additions and 14 deletions

View File

@@ -82,7 +82,7 @@ func main() {
if len(db.Database) > 0 && kbdisableIndexing != "true" {
xlog.Info("Loading knowledgebase from disk, to skip run with KBDISABLEINDEX=true")
if err := db.SaveAllToStore(); err != nil {
if err := db.PopulateRAGDB(); err != nil {
xlog.Info("Error storing in the KB", err)
}
}