From e26338fb956a56e97187da12f8b45a01c3e49f2d Mon Sep 17 00:00:00 2001 From: "jinli.yl" Date: Fri, 29 Aug 2025 14:40:30 +0800 Subject: [PATCH] feat(react): add simple react operator and update related functionalities - Add SimpleReactOp to react module - Update reme_ai/__init__.py to include react module - Modify contra_repeat_op.py to use memory_id instead of id - Adjust datetime_handler.py to handle string datetime conversion - Update default.yaml to include react flow content - Modify get_observation_op.py and get_observation_with_time_op.py to use workspace_id from context - Update test/http_client_test.py to test new react functionality - Adjust messages.jsonl to reflect new analysis approach for Xiaomi Corporation --- cookbook/simple_demo/experience.jsonl | 30 --- {cookbook/simple_demo => doc}/quick_start.md | 0 library/index.html | 232 +++++++++--------- reme_ai/__init__.py | 2 - reme_ai/config/default.yaml | 36 ++- reme_ai/delete/__init__.py | 1 - reme_ai/delete/task/__init__.py | 1 - reme_ai/react/simple_react_op.py | 4 +- reme_ai/record/__init__.py | 1 - reme_ai/record/task/__init__.py | 2 - reme_ai/vector_store/__init__.py | 9 +- .../task => vector_store}/delete_memory_op.py | 0 .../update_memory_freq_op.py | 4 +- .../update_memory_utility_op.py | 4 +- 14 files changed, 163 insertions(+), 163 deletions(-) delete mode 100644 cookbook/simple_demo/experience.jsonl rename {cookbook/simple_demo => doc}/quick_start.md (100%) delete mode 100644 reme_ai/delete/__init__.py delete mode 100644 reme_ai/delete/task/__init__.py delete mode 100644 reme_ai/record/__init__.py delete mode 100644 reme_ai/record/task/__init__.py rename reme_ai/{delete/task => vector_store}/delete_memory_op.py (100%) rename reme_ai/{record/task => vector_store}/update_memory_freq_op.py (92%) rename reme_ai/{record/task => vector_store}/update_memory_utility_op.py (92%) diff --git a/cookbook/simple_demo/experience.jsonl b/cookbook/simple_demo/experience.jsonl deleted file mode 100644 index 48749015..00000000 --- a/cookbook/simple_demo/experience.jsonl +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "workspace_id": "test_workspace1", - "experience_id": "e249d97f56dd452badd764a81dc22709", - "experience_type": "text", - "when_to_use": "When analyzing a large, multifaceted corporation across various dimensions such as financials, market position, and technological innovations.", - "content": "Breaking down the problem into smaller subtasks (e.g., financial performance, market standing, recent developments) allows for a more systematic and comprehensive analysis. Using multiple `web_search` calls with specific queries ensures that each dimension is thoroughly covered from different angles.", - "score": null, - "metadata": { - "author": "qwen-max-2025-01-25", - "created_time": "2025-07-21 16:35:35", - "modified_time": "2025-07-21 16:35:35", - "extra_info": null - } - }, - { - "workspace_id": "test_workspace1", - "experience_id": "c13abd248d1a48e89582f0177a7a0f84", - "experience_type": "text", - "when_to_use": "When information retrieved seems sufficient but fragmented across several sources and needs to be synthesized into a coherent response.", - "content": "After gathering data through various tool calls, it is crucial to integrate all relevant pieces of information into a unified narrative. This involves cross-referencing the content, ensuring consistency, and presenting the findings in a structured manner so that the final output directly addresses the user’s question without leaving gaps or introducing redundancies.", - "score": null, - "metadata": { - "author": "qwen-max-2025-01-25", - "created_time": "2025-07-21 16:35:35", - "modified_time": "2025-07-21 16:35:35", - "extra_info": null - } - } -] \ No newline at end of file diff --git a/cookbook/simple_demo/quick_start.md b/doc/quick_start.md similarity index 100% rename from cookbook/simple_demo/quick_start.md rename to doc/quick_start.md diff --git a/library/index.html b/library/index.html index f5b6e75c..44643474 100644 --- a/library/index.html +++ b/library/index.html @@ -3,18 +3,18 @@ - ExperienceMaker - Experience Library + Reme - Memory Library