This commit is contained in:
Saifeddine ALOUI 2023-08-26 20:21:42 +02:00
parent f2d09c7bc3
commit dac0bb39b2
3 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
# =================== Lord Of Large Language Models Configuration file =========================== # =================== Lord Of Large Language Models Configuration file ===========================
version: 19 version: 20
binding_name: null binding_name: null
model_name: null model_name: null
@ -36,6 +36,7 @@ user_avatar: default_user
# Automatic update # Automatic update
auto_update: false auto_update: false
auto_save: true
debug: false debug: false
# Data vectorization # Data vectorization
@ -45,3 +46,4 @@ data_vectorization_save_db: False # For each new session, new files
data_vectorization_chunk_size: 512 # chunk size data_vectorization_chunk_size: 512 # chunk size
data_vectorization_overlap_size: 128 # overlap between chunks size data_vectorization_overlap_size: 128 # overlap between chunks size
data_vectorization_nb_chunks: 2 # number of chunks to use data_vectorization_nb_chunks: 2 # number of chunks to use
data_vectorization_build_keys_words: false # If true, when querrying the database, we use keywords generated from the user prompt instead of the prompt itself.

View File

@ -131,8 +131,6 @@ Date: {{date}}
self._logo: Optional[Image.Image] = None self._logo: Optional[Image.Image] = None
self._processor = None self._processor = None
if personality_package_path is None: if personality_package_path is None:
self.config = {} self.config = {}
self.assets_list = [] self.assets_list = []
@ -146,16 +144,16 @@ Date: {{date}}
# Validate that the path exists # Validate that the path exists
if not self.personality_package_path.exists(): if not self.personality_package_path.exists():
raise ValueError("The provided path does not exist.") raise ValueError(f"Could not find the personality package:{self.personality_package_path}")
# Validate that the path format is OK with at least a config.yaml file present in the folder # Validate that the path format is OK with at least a config.yaml file present in the folder
if not self.personality_package_path.is_dir(): if not self.personality_package_path.is_dir():
raise ValueError("The provided path is not a folder.") raise ValueError(f"Personality package path is not a folder:{self.personality_package_path}")
self.personality_folder_name = self.personality_package_path.stem self.personality_folder_name = self.personality_package_path.stem
# Open and store the personality # Open and store the personality
self.load_personality(personality_package_path) self.load_personality()
def setCallback(self, callback: Callable[[str, int, dict], bool]): def setCallback(self, callback: Callable[[str, int, dict], bool]):
self.callback = callback self.callback = callback
@ -1447,7 +1445,7 @@ class PersonalityBuilder:
if len(self.config["personalities"][id].split("/"))==2: if len(self.config["personalities"][id].split("/"))==2:
self.personality = AIPersonality( self.personality = AIPersonality(
self.lollms_paths.personalities_zoo_path / personality_folder, personality_folder,
self.lollms_paths, self.lollms_paths,
self.config, self.config,
self.model, self.model,

View File

@ -26,7 +26,7 @@ def get_all_files(path):
setuptools.setup( setuptools.setup(
name="lollms", name="lollms",
version="4.2.0", version="4.2.2",
author="Saifeddine ALOUI", author="Saifeddine ALOUI",
author_email="aloui.saifeddine@gmail.com", author_email="aloui.saifeddine@gmail.com",
description="A python library for AI personality definition", description="A python library for AI personality definition",