From e1d399e24c461fce32a22c4db9148601b3244ecb Mon Sep 17 00:00:00 2001 From: ziming <2216646743@qq.com> Date: Tue, 26 Sep 2023 13:01:12 +0800 Subject: [PATCH] v 1.4 --- metagpt/reflect_and_retrieve/GA_memory_storage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/metagpt/reflect_and_retrieve/GA_memory_storage.py b/metagpt/reflect_and_retrieve/GA_memory_storage.py index b960b73f3..db2e5c559 100644 --- a/metagpt/reflect_and_retrieve/GA_memory_storage.py +++ b/metagpt/reflect_and_retrieve/GA_memory_storage.py @@ -129,7 +129,10 @@ if __name__ == "__main__": for i in range(len(John.memories_list)): print(f"John记忆为:{John.memories_list[i].description}") print(f"心酸程度为:{John.memories_list[i].poignancy}") - query = "How has John's personal connection with his neighbors, such as the Moores and Yuriko, influenced his role as a pharmacy shopkeeper?" + query = """ + How has John's personal connection with his neighbors, + such as the Moores and Yuriko, influenced his role as a pharmacy shopkeeper? + """ Top_v = agent_retrive(John, query, 10, 3) print(f"John的相关信息:{Top_v}")