Skip to content

Commit

Permalink
Update discussions_database.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ParisNeo authored Dec 17, 2024
1 parent 1244a86 commit 7d36877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lollms/databases/discussions_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ def __init__(self, lollms:LoLLMsCom, discussion_id:int, discussions_db:Discussio
if len(self.text_files)>0:
if self.lollms.config.rag_vectorizer=="semantic":
from lollmsvectordb.lollms_vectorizers.semantic_vectorizer import SemanticVectorizer
vectorizer = SemanticVectorizer(self.lollms.config.rag_vectorizer_model, self.config.rag_vectorizer_execute_remote_code)
vectorizer = SemanticVectorizer(self.lollms.config.rag_vectorizer_model, self.lollms.config.rag_vectorizer_execute_remote_code)
elif self.lollms.config.rag_vectorizer=="tfidf":
from lollmsvectordb.lollms_vectorizers.tfidf_vectorizer import TFIDFVectorizer
vectorizer = TFIDFVectorizer()
Expand Down

0 comments on commit 7d36877

Please sign in to comment.