This commit is contained in:
Saifeddine ALOUI 2024-12-16 00:05:06 +01:00
parent c224bcb35d
commit 20c9e68ac8
2 changed files with 5 additions and 2 deletions

View File

@ -28,7 +28,7 @@ class SkillsLibrary:
else: else:
from lollmsvectordb.lollms_vectorizers.semantic_vectorizer import SemanticVectorizer from lollmsvectordb.lollms_vectorizers.semantic_vectorizer import SemanticVectorizer
v = SemanticVectorizer("BAAI/bge-m3") v = SemanticVectorizer(self.config.rag_vectorizer_model)
self.vectorizer = VectorDatabase("", v, TikTokenTokenizer(),chunk_size, overlap, n_neighbors) self.vectorizer = VectorDatabase("", v, TikTokenTokenizer(),chunk_size, overlap, n_neighbors)
ASCIIColors.green("Vecorizer ready") ASCIIColors.green("Vecorizer ready")

View File

@ -868,6 +868,9 @@ Don't forget encapsulate the code inside a html code tag. This is mandatory.
return code, response_full return code, response_full
else: else:
return code return code
else:
if return_full_generated_code:
return None, None
else: else:
return None return None