diff --git a/lollms/configs/config.yaml b/lollms/configs/config.yaml index fc63550..acf2a8f 100644 --- a/lollms/configs/config.yaml +++ b/lollms/configs/config.yaml @@ -1,5 +1,5 @@ # =================== Lord Of Large Language Models Configuration file =========================== -version: 19 +version: 20 binding_name: null model_name: null @@ -36,6 +36,7 @@ user_avatar: default_user # Automatic update auto_update: false +auto_save: true debug: false # Data vectorization @@ -44,4 +45,5 @@ data_visualization_method: "PCA" #"PCA" or "TSNE" data_vectorization_save_db: False # For each new session, new files data_vectorization_chunk_size: 512 # chunk size data_vectorization_overlap_size: 128 # overlap between chunks size -data_vectorization_nb_chunks: 2 # number of chunks to use \ No newline at end of file +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. \ No newline at end of file diff --git a/lollms/personality.py b/lollms/personality.py index eade178..83caa6f 100644 --- a/lollms/personality.py +++ b/lollms/personality.py @@ -131,8 +131,6 @@ Date: {{date}} self._logo: Optional[Image.Image] = None self._processor = None - - if personality_package_path is None: self.config = {} self.assets_list = [] @@ -146,16 +144,16 @@ Date: {{date}} # Validate that the 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 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 # Open and store the personality - self.load_personality(personality_package_path) + self.load_personality() def setCallback(self, callback: Callable[[str, int, dict], bool]): self.callback = callback @@ -1447,7 +1445,7 @@ class PersonalityBuilder: if len(self.config["personalities"][id].split("/"))==2: self.personality = AIPersonality( - self.lollms_paths.personalities_zoo_path / personality_folder, + personality_folder, self.lollms_paths, self.config, self.model, diff --git a/setup.py b/setup.py index ee80aed..b70e2e6 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ def get_all_files(path): setuptools.setup( name="lollms", - version="4.2.0", + version="4.2.2", author="Saifeddine ALOUI", author_email="aloui.saifeddine@gmail.com", description="A python library for AI personality definition",