added indexing

This commit is contained in:
Saifeddine ALOUI 2024-06-18 01:45:54 +02:00
parent 3acd936fe8
commit fa66706061

View File

@ -104,7 +104,8 @@ class LollmsApplication(LoLLMsCom):
from lollmsvectordb import VectorDatabase
from lollmsvectordb.text_document_loader import TextDocumentsLoader
v = BERTVectorizer()
vdb = VectorDatabase(Path(parts[1])/"db_name.sqlite", v)
vdb = VectorDatabase(Path(parts[1])/"db_name.sqlite", v)
vdb.build_index()
self.active_rag_dbs.append({"name":parts[0],"path":parts[1],"vectorizer":vdb})
self.rt_com = None