mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-01-20 19:49:25 +00:00
added indexing
This commit is contained in:
parent
3acd936fe8
commit
fa66706061
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user