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:
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)
ASCIIColors.green("Vecorizer ready")

View File

@ -869,7 +869,10 @@ Don't forget encapsulate the code inside a html code tag. This is mandatory.
else:
return code
else:
return None
if return_full_generated_code:
return None, None
else:
return None
def generate_text(