mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-01 16:58:28 +00:00
added indexing
This commit is contained in:
parent
3acd936fe8
commit
fa66706061
@ -105,6 +105,7 @@ class LollmsApplication(LoLLMsCom):
|
|||||||
from lollmsvectordb.text_document_loader import TextDocumentsLoader
|
from lollmsvectordb.text_document_loader import TextDocumentsLoader
|
||||||
v = BERTVectorizer()
|
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.active_rag_dbs.append({"name":parts[0],"path":parts[1],"vectorizer":vdb})
|
||||||
|
|
||||||
self.rt_com = None
|
self.rt_com = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user