mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-03-01 12:11:26 +00:00
Update app.py
This commit is contained in:
parent
490983ce6f
commit
148813a8fb
@ -304,7 +304,7 @@ class LollmsApplication(LoLLMsCom):
|
|||||||
vdb = VectorDatabase(Path(parts[1])/f"{db_name}.sqlite", v, self.model if self.model else TikTokenTokenizer(), n_neighbors=self.config.rag_n_chunks)
|
vdb = VectorDatabase(Path(parts[1])/f"{db_name}.sqlite", v, self.model if self.model else TikTokenTokenizer(), n_neighbors=self.config.rag_n_chunks)
|
||||||
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})
|
||||||
except:
|
except:
|
||||||
ASCIIColors.error(f"Couldn't load "+Path(parts[1])/f"{db_name}.sqlite consider revectorizing it")
|
ASCIIColors.error(f"Couldn't load "+str(Path(parts[1])/f"{db_name}.sqlite")+" consider revectorizing it")
|
||||||
|
|
||||||
def start_servers(self):
|
def start_servers(self):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user