Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
cli hotfix
Vivian Fang39b545f869ba
diff --git a/config.py b/config.pyindex 5ebebd248..b900e3a3d 100644--- a/config.py+++ b/config.py@@ -37,6 +37,7 @@ class Config:self.agent_save_file = Noneself.persistence_manager_save_file = Noneself.host = os.getenv("OPENAI_API_BASE")+ self.index = None@classmethodasync def legacy_flags_init(@@ -59,10 +60,7 @@ class Config:self.compute_embeddings = compute_embeddingsrecompute_embeddings = self.compute_embeddingsif 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 selfdiff --git a/main.py b/main.pyindex 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)