From 3e4e1e8e0de6cdaed5082337dc72d6da66dd03bb Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Mon, 23 Oct 2023 13:01:47 -0700 Subject: [PATCH 1/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index cd5f761bf..14fddba64 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ Try out our MemGPT chatbot on Discord! ⭐ NEW: You can now run MemGPT with local LLMs! ⭐ + + ⭐ NEW: You can now run MemGPT with AutoGen! ⭐ [![Discord](https://img.shields.io/discord/1161736243340640419?label=Discord&logo=discord&logoColor=5865F2&style=flat-square&color=5865F2)](https://discord.gg/9GEQrxmVyE) [![arXiv 2310.08560](https://img.shields.io/badge/arXiv-2310.08560-B31B1B?logo=arxiv&style=flat-square)](https://arxiv.org/abs/2310.08560) From 8534c676050d86bd49da0c85d8f7ca90a2fc714c Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Mon, 23 Oct 2023 13:02:20 -0700 Subject: [PATCH 2/3] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 14fddba64..04d3048a7 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,8 @@ Try out our MemGPT chatbot on Discord! - ⭐ NEW: You can now run MemGPT with local LLMs! ⭐ + ⭐ NEW: You can now run MemGPT with local LLMs and AutoGen! ⭐ - ⭐ NEW: You can now run MemGPT with AutoGen! ⭐ - [![Discord](https://img.shields.io/discord/1161736243340640419?label=Discord&logo=discord&logoColor=5865F2&style=flat-square&color=5865F2)](https://discord.gg/9GEQrxmVyE) [![arXiv 2310.08560](https://img.shields.io/badge/arXiv-2310.08560-B31B1B?logo=arxiv&style=flat-square)](https://arxiv.org/abs/2310.08560) From 33939c032085e8d09647628218bc1c664d7d98b1 Mon Sep 17 00:00:00 2001 From: Vivian Fang Date: Mon, 23 Oct 2023 13:48:05 -0700 Subject: [PATCH 3/3] cli hotfix --- config.py | 6 ++---- main.py | 7 ++++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/config.py b/config.py index 5ebebd248..b900e3a3d 100644 --- a/config.py +++ b/config.py @@ -37,6 +37,7 @@ class Config: self.agent_save_file = None self.persistence_manager_save_file = None self.host = os.getenv("OPENAI_API_BASE") + self.index = None @classmethod async def legacy_flags_init( @@ -59,10 +60,7 @@ class Config: self.compute_embeddings = compute_embeddings recompute_embeddings = self.compute_embeddings if self.archival_storage_index: - recompute_embeddings = questionary.confirm( - f"Would you like to recompute embeddings? Do this if your files have changed.\nFiles:{self.archival_storage_files}", - default=False, - ) + recompute_embeddings = False # TODO Legacy support -- can't recompute embeddings on a path that's not specified. if self.archival_storage_files: await self.configure_archival_storage(recompute_embeddings) return self diff --git a/main.py b/main.py index c0a92941d..f7743200b 100644 --- a/main.py +++ b/main.py @@ -202,8 +202,9 @@ async def main(): memgpt_persona, human_persona, load_type="folder", - archival_storage_index=FLAGS.archival_storage_index, - compute_embeddings=False, + archival_storage_files=FLAGS.archival_storage_faiss_path, + archival_storage_index=FLAGS.archival_storage_faiss_path, + compute_embeddings=True, ) elif FLAGS.archival_storage_files_compute_embeddings: print(model) @@ -273,7 +274,7 @@ async def main(): ) return - if cfg.archival_storage_index: + if cfg.index: persistence_manager = InMemoryStateManagerWithFaiss( cfg.index, cfg.archival_database )