reme-ai 0.1.3__tar.gz → 0.1.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. {reme_ai-0.1.3/reme_ai.egg-info → reme_ai-0.1.4}/PKG-INFO +295 -132
  2. reme_ai-0.1.4/README.md +432 -0
  3. {reme_ai-0.1.3 → reme_ai-0.1.4}/pyproject.toml +9 -3
  4. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/__init__.py +1 -1
  5. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/config/default.yaml +16 -0
  6. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/constants/common_constants.py +0 -2
  7. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/constants/language_constants.py +1 -1
  8. reme_ai-0.1.4/reme_ai/enumeration/language_enum.py +14 -0
  9. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/__init__.py +0 -1
  10. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/trajectory_preprocess_op.py +2 -31
  11. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/utils/datetime_handler.py +1 -1
  12. {reme_ai-0.1.3 → reme_ai-0.1.4/reme_ai.egg-info}/PKG-INFO +295 -132
  13. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai.egg-info/SOURCES.txt +1 -3
  14. reme_ai-0.1.3/README.md +0 -270
  15. reme_ai-0.1.3/reme_ai/enumeration/language_constants.py +0 -215
  16. reme_ai-0.1.3/reme_ai/summary/task/pdf_preprocess_op_wrapper.py +0 -50
  17. reme_ai-0.1.3/reme_ai/utils/miner_u_pdf_processor.py +0 -726
  18. {reme_ai-0.1.3 → reme_ai-0.1.4}/LICENSE +0 -0
  19. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/app.py +0 -0
  20. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/config/__init__.py +0 -0
  21. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/config/config_parser.py +0 -0
  22. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/constants/__init__.py +0 -0
  23. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/enumeration/__init__.py +0 -0
  24. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/react/__init__.py +0 -0
  25. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/react/simple_react_op.py +0 -0
  26. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/__init__.py +0 -0
  27. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/personal/__init__.py +0 -0
  28. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/personal/extract_time_op.py +0 -0
  29. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/personal/extract_time_prompt.yaml +0 -0
  30. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/personal/fuse_rerank_op.py +0 -0
  31. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/personal/print_memory_op.py +0 -0
  32. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/personal/print_memory_prompt.yaml +0 -0
  33. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/personal/read_message_op.py +0 -0
  34. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/personal/retrieve_memory_op.py +0 -0
  35. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/personal/semantic_rank_op.py +0 -0
  36. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/personal/set_query_op.py +0 -0
  37. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/task/__init__.py +0 -0
  38. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/task/build_query_op.py +0 -0
  39. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/task/build_query_prompt.yaml +0 -0
  40. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/task/merge_memory_op.py +0 -0
  41. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/task/rerank_memory_op.py +0 -0
  42. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/task/rerank_memory_prompt.yaml +0 -0
  43. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/task/rewrite_memory_op.py +0 -0
  44. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/retrieve/task/rewrite_memory_prompt.yaml +0 -0
  45. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/schema/__init__.py +0 -0
  46. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/schema/memory.py +0 -0
  47. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/__init__.py +0 -0
  48. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/__init__.py +0 -0
  49. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/contra_repeat_op.py +0 -0
  50. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/contra_repeat_prompt.yaml +0 -0
  51. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/get_observation_op.py +0 -0
  52. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/get_observation_prompt.yaml +0 -0
  53. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/get_observation_with_time_op.py +0 -0
  54. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/get_observation_with_time_prompt.yaml +0 -0
  55. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/get_reflection_subject_op.py +0 -0
  56. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/get_reflection_subject_prompt.yaml +0 -0
  57. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/info_filter_op.py +0 -0
  58. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/info_filter_prompt.yaml +0 -0
  59. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/load_today_memory_op.py +0 -0
  60. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/long_contra_repeat_op.py +0 -0
  61. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/long_contra_repeat_prompt.yaml +0 -0
  62. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/update_insight_op.py +0 -0
  63. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/personal/update_insight_prompt.yaml +0 -0
  64. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/comparative_extraction_op.py +0 -0
  65. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/comparative_extraction_prompt.yaml +0 -0
  66. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/failure_extraction_op.py +0 -0
  67. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/failure_extraction_prompt.yaml +0 -0
  68. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/memory_deduplication_op.py +0 -0
  69. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/memory_validation_op.py +0 -0
  70. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/memory_validation_prompt.yaml +0 -0
  71. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/simple_comparative_summary_op.py +0 -0
  72. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/simple_comparative_summary_prompt.yaml +0 -0
  73. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/simple_summary_op.py +0 -0
  74. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/simple_summary_prompt.yaml +0 -0
  75. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/success_extraction_op.py +0 -0
  76. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/success_extraction_prompt.yaml +0 -0
  77. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/trajectory_segmentation_op.py +0 -0
  78. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/summary/task/trajectory_segmentation_prompt.yaml +0 -0
  79. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/utils/__init__.py +0 -0
  80. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/utils/op_utils.py +0 -0
  81. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/vector_store/__init__.py +0 -0
  82. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/vector_store/delete_memory_op.py +0 -0
  83. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/vector_store/recall_vector_store_op.py +0 -0
  84. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/vector_store/update_memory_freq_op.py +0 -0
  85. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/vector_store/update_memory_utility_op.py +0 -0
  86. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/vector_store/update_vector_store_op.py +0 -0
  87. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai/vector_store/vector_store_action_op.py +0 -0
  88. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai.egg-info/dependency_links.txt +0 -0
  89. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai.egg-info/entry_points.txt +0 -0
  90. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai.egg-info/requires.txt +0 -0
  91. {reme_ai-0.1.3 → reme_ai-0.1.4}/reme_ai.egg-info/top_level.txt +0 -0
  92. {reme_ai-0.1.3 → reme_ai-0.1.4}/setup.cfg +0 -0
  93. {reme_ai-0.1.3 → reme_ai-0.1.4}/test/test1.py +0 -0
  94. {reme_ai-0.1.3 → reme_ai-0.1.4}/test/test2.py +0 -0
  95. {reme_ai-0.1.3 → reme_ai-0.1.4}/test/test3.py +0 -0
  96. {reme_ai-0.1.3 → reme_ai-0.1.4}/test/test4.py +0 -0
  97. {reme_ai-0.1.3 → reme_ai-0.1.4}/test/test_update_insight_op.py +0 -0
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reme_ai
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Remember me
5
- Author-email: reme_team <reme_team@alibaba-inc.com>
5
+ Author-email: "jinli.yl" <jinli.yl@alibaba-inc.com>, "dengjiaji.djj" <dengjiaji.djj@alibaba-inc.com>, "caozouying.czy" <caozouying.czy@alibaba-inc.com>
6
6
  License: Apache License
7
7
  Version 2.0, January 2004
8
8
  http://www.apache.org/licenses/
@@ -205,132 +205,140 @@ License: Apache License
205
205
  See the License for the specific language governing permissions and
206
206
  limitations under the License.
207
207
 
208
+ Keywords: llm,memory,experience,memoryscope,ai,mcp,http
208
209
  Classifier: Programming Language :: Python :: 3
209
210
  Classifier: License :: OSI Approved :: Apache Software License
210
211
  Classifier: Operating System :: OS Independent
211
- Requires-Python: >=3.12
212
+ Requires-Python: >=3.11
212
213
  Description-Content-Type: text/markdown
213
214
  License-File: LICENSE
214
215
  Requires-Dist: flowllm>=0.1.3
215
216
  Dynamic: license-file
216
217
 
217
- # ReMe.ai
218
-
219
218
  <p align="center">
220
- <img src="doc/figure/logo.jpg" alt="ReMe.ai Logo" width="100%">
219
+ <img src="docs/figure/reme_logo.png" alt="ReMe Logo" width="50%">
221
220
  </p>
222
221
 
223
222
  <p align="center">
224
223
  <a href="https://pypi.org/project/reme-ai/"><img src="https://img.shields.io/badge/python-3.12+-blue" alt="Python Version"></a>
225
- <a href="https://pypi.org/project/reme-ai/"><img src="https://img.shields.io/badge/pypi-v1.0.0-blue?logo=pypi" alt="PyPI Version"></a>
224
+ <a href="https://pypi.org/project/reme-ai/"><img src="https://img.shields.io/badge/pypi-v0.1.x-blue?logo=pypi" alt="PyPI Version"></a>
226
225
  <a href="./LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-black" alt="License"></a>
227
- <a href="https://github.com/modelscope/ReMe.ai"><img src="https://img.shields.io/github/stars/modelscope/ReMe.ai?style=social" alt="GitHub Stars"></a>
226
+ <a href="https://github.com/modelscope/ReMe"><img src="https://img.shields.io/github/stars/modelscope/ReMe?style=social" alt="GitHub Stars"></a>
228
227
  </p>
229
228
 
230
229
  <p align="center">
231
- <strong>记忆驱动的AI智能体框架</strong><br>
232
- <em>"如果说我比别人看得更远些,那是因为我站在了巨人的肩膀上。" —— 牛顿</em>
230
+ <strong>ReMe (formerly MemoryScope): Memory Management Framework for Agents</strong><br>
231
+ <em>Remember Me, Refine Me.</em>
233
232
  </p>
234
233
 
235
234
  ---
236
-
237
- Remember Everyone, Recreate Everything
238
-
239
- Remember Me, Reshape Me
240
-
241
- Remember Me, Refine Me
242
-
243
- Remember Me, Reinvent Me
244
-
245
- 今天的每个AI智能体都在从零开始。每当智能体处理任务时,它都在重新发明无数其他智能体已经发现的解决方案。这就像要求每个人都从头发现火、农业和数学一样。
246
-
247
- ReMe.ai希望改变这一点。我们为AI智能体提供了统一的记忆与经验系统——在跨用户、跨任务、跨智能体下抽取、复用和分享记忆的能力。
235
+ ReMe provides AI agents with a unified memory system—enabling the ability to extract, reuse, and share memories across
236
+ users, tasks, and agents.
248
237
 
249
238
  ```
250
- 任务经验 (Task Memory) + 个人记忆 (Personal Memory) = agent的记忆管理
239
+ Personal Memory + Task Memory = Agent Memory
251
240
  ```
252
241
 
253
- 个人记忆回答"**如何理解用户需要**",任务记忆回答"**如何做得更好**"
242
+ Personal memory helps "**understand user preferences**", while task memory helps agents "**perform better**".
254
243
 
255
244
  ---
256
245
 
257
- ## 📰 最新动态
258
- - **[2025-09]** 🎉 ReMe.ai v1.0.0 正式发布,整合任务经验与个人记忆
259
- - **[2025-08]** 🚀 MCP协议支持已上线!→ [快速开始指南](./doc/mcp_quick_start.md)
260
- - **[2025-07]** 📚 完整文档和快速开始指南发布
261
- - **[2025-06]** 🚀 多后端向量存储支持 (Elasticsearch & ChromaDB)
246
+ ## 📰 Latest Updates
247
+
248
+ - **[2025-09]** 🎉 ReMe v0.1
249
+ officially released, integrating task memory and personal memory. If you want to use the original memoryscope project,
250
+ you can find it in [MemoryScope](https://github.com/modelscope/Reme/tree/memoryscope_branch).
251
+ - **[2025-09]** 🧪 We validated the effectiveness of task memory extraction and reuse in agents in appworld, bfcl(v3),
252
+ and frozenlake environments. For more information,
253
+ check [appworld exp](./cookbook/appworld/quickstart.md), [bfcl exp](./cookbook/bfcl/quickstart.md),
254
+ and [frozenlake exp](./cookbook/frozenlake/quickstart.md).
255
+ - **[2025-08]** 🚀 MCP protocol support is now available -> [MCP Quick Start](docs/mcp_quick_start.md).
256
+ - **[2025-06]** 🚀 Multiple backend vector storage support (Elasticsearch &
257
+ ChromaDB) -> [Vector DB quick start](docs/vector_store_api_guide.md).
258
+ - **[2024-09]** 🧠 [MemoryScope](https://github.com/modelscope/Reme/tree/memoryscope_branch) v0.1.x released,
259
+ personalized and time-aware memory storage and usage.
262
260
 
263
261
  ---
264
262
 
265
- ## ✨ 架构设计
263
+ ## ✨ Architecture Design
264
+
265
+ <p align="center">
266
+ <img src="docs/figure/reme_structure.jpg" alt="ReMe Logo" width="100%">
267
+ </p>
268
+
269
+ ReMe integrates two complementary memory capabilities:
270
+
271
+ #### 🧠 **Task Memory/Experience**
266
272
 
267
- ### 🎯 双模记忆系统
273
+ Procedural knowledge reused across agents
268
274
 
269
- ReMe.ai整合两种互补的记忆能力:
275
+ - **Success Pattern Recognition**: Identify effective strategies and understand their underlying principles
276
+ - **Failure Analysis Learning**: Learn from mistakes and avoid repeating the same issues
277
+ - **Comparative Patterns**: Different sampling trajectories provide more valuable memories through comparison
278
+ - **Validation Patterns**: Confirm the effectiveness of extracted memories through validation modules
270
279
 
271
- #### 🧠 **任务经验 (Task Memory/Experience)**
272
- 跨智能体复用的程序性知识
273
- - **成功模式识别**:识别有效策略并理解其根本原理
274
- - **失败分析学习**:从错误中学习,避免重复同样的问题
275
- - **规划策略**:不同问题类型的规划策略
276
- - **工具使用模式**:经过验证的有效工具使用方法
277
- - **标准操作流程**:经过验证的方法论和流程
280
+ Learn more about how to use task memory from [task memory](docs/task_memory/task_memory.md)
278
281
 
279
- 你可以从[快速开始指南](./doc/task_memory_readme.md)了解更多如何使用task memory的方法
282
+ #### 👤 **Personal Memory**
280
283
 
281
- #### 👤 **个人记忆 (personal memory)**
282
- 特定用户的情境化记忆
283
- - **个体偏好**:用户的习惯、偏好和交互风格
284
- - **情境适应**:基于时间和上下文的智能记忆管理
285
- - **渐进学习**:通过长期交互逐步建立深度理解
286
- - **时间感知**:检索和整合时都具备时间敏感性
284
+ Contextualized memory for specific users
287
285
 
288
- - 你可以从[快速开始指南](./doc/personal_memory_readme.md)了解更多如何使用personal memory的方法
286
+ - **Individual Preferences**: User habits, preferences, and interaction styles
287
+ - **Contextual Adaptation**: Intelligent memory management based on time and context
288
+ - **Progressive Learning**: Gradually build deep understanding through long-term interaction
289
+ - **Time Awareness**: Time sensitivity in both retrieval and integration
289
290
 
291
+ Learn more about how to use personal memory from [personal memory](docs/personal_memory/personal_memory.md)
290
292
 
291
293
  ---
292
294
 
293
- ## 🛠️ 安装
295
+ ## 🛠️ Installation
296
+
297
+ ### Install from PyPI (Recommended)
294
298
 
295
- ### 从PyPI安装(推荐)
296
299
  ```bash
297
300
  pip install reme-ai
298
301
  ```
299
302
 
300
- ### 从源码安装
303
+ ### Install from Source
304
+
301
305
  ```bash
302
- git clone https://github.com/modelscope/ReMe.ai.git
303
- cd ReMe.ai
306
+ git clone https://github.com/modelscope/ReMe.git
307
+ cd ReMe
304
308
  pip install .
305
309
  ```
306
310
 
307
- ### 环境配置
308
- 创建`.env`文件:
311
+ ### Environment Configuration
312
+
313
+ Copy `example.env` to .env and modify the corresponding parameters:
314
+
309
315
  ```bash
310
- # 必需:LLM API配置
311
- LLM_API_KEY="sk-xxx"
312
- LLM_BASE_URL="https://xxx.com/v1"
316
+ # Required: LLM API Configuration
317
+ FLOW_LLM_API_KEY=sk-xxxx
318
+ FLOW_LLM_BASE_URL=https://xxxx/v1
313
319
 
314
- # 必需:嵌入模型配置
315
- EMBEDDING_MODEL_API_KEY="sk-xxx"
316
- EMBEDDING_MODEL_BASE_URL="https://xxx.com/v1"
320
+ # Required: Embedding Model Configuration
321
+ FLOW_EMBEDDING_API_KEY=sk-xxxx
322
+ FLOW_EMBEDDING_BASE_URL=https://xxxx/v1
317
323
  ```
318
324
 
319
325
  ---
320
326
 
321
- ## 🚀 快速开始
327
+ ## 🚀 Quick Start
328
+
329
+ ### HTTP Service Startup
322
330
 
323
- ### HTTP服务启动
324
331
  ```bash
325
332
  reme \
326
- backend=http \
327
- http.port=8001 \
333
+ backend=http \
334
+ http.port=8002 \
328
335
  llm.default.model_name=qwen3-30b-a3b-thinking-2507 \
329
336
  embedding_model.default.model_name=text-embedding-v4 \
330
337
  vector_store.default.backend=local
331
338
  ```
332
339
 
333
- ### MCP服务器支持
340
+ ### MCP Server Support
341
+
334
342
  ```bash
335
343
  reme \
336
344
  backend=mcp \
@@ -340,147 +348,302 @@ reme \
340
348
  vector_store.default.backend=local
341
349
  ```
342
350
 
343
- ### 核心API使用
351
+ ### Core API Usage
352
+
353
+ #### Task Memory Management
344
354
 
345
- #### 任务经验管理
346
355
  ```python
347
356
  import requests
348
357
 
349
- # 经验总结器:从执行轨迹学习
358
+ # Experience Summarizer: Learn from execution trajectories
350
359
  response = requests.post("http://localhost:8002/summary_task_memory", json={
351
360
  "workspace_id": "task_workspace",
352
361
  "trajectories": [
353
- {"messages": [{"role": "user", "content": "帮我制定项目计划"}], "score": 1.0}
362
+ {"messages": [{"role": "user", "content": "Help me create a project plan"}], "score": 1.0}
354
363
  ]
355
364
  })
356
365
 
357
- # 经验检索器:获取相关经验
366
+ # Retriever: Get relevant memories
358
367
  response = requests.post("http://localhost:8002/retrieve_task_memory", json={
359
368
  "workspace_id": "task_workspace",
360
- "query": "如何高效管理项目进度?",
369
+ "query": "How to efficiently manage project progress?",
361
370
  "top_k": 1
362
371
  })
363
372
  ```
364
373
 
365
- #### 个人记忆管理
374
+ <details>
375
+ <summary>curl version</summary>
376
+
377
+ ```bash
378
+ # Experience Summarizer: Learn from execution trajectories
379
+ curl -X POST http://localhost:8002/summary_task_memory \
380
+ -H "Content-Type: application/json" \
381
+ -d '{
382
+ "workspace_id": "task_workspace",
383
+ "trajectories": [
384
+ {"messages": [{"role": "user", "content": "Help me create a project plan"}], "score": 1.0}
385
+ ]
386
+ }'
387
+
388
+ # Retriever: Get relevant memories
389
+ curl -X POST http://localhost:8002/retrieve_task_memory \
390
+ -H "Content-Type: application/json" \
391
+ -d '{
392
+ "workspace_id": "task_workspace",
393
+ "query": "How to efficiently manage project progress?",
394
+ "top_k": 1
395
+ }'
396
+ ```
397
+
398
+ </details>
399
+
400
+ <details>
401
+ <summary>Node.js version</summary>
402
+
403
+ ```javascript
404
+ // Experience Summarizer: Learn from execution trajectories
405
+ fetch("http://localhost:8002/summary_task_memory", {
406
+ method: "POST",
407
+ headers: {
408
+ "Content-Type": "application/json",
409
+ },
410
+ body: JSON.stringify({
411
+ workspace_id: "task_workspace",
412
+ trajectories: [
413
+ {messages: [{role: "user", content: "Help me create a project plan"}], score: 1.0}
414
+ ]
415
+ })
416
+ })
417
+ .then(response => response.json())
418
+ .then(data => console.log(data));
419
+
420
+ // Retriever: Get relevant memories
421
+ fetch("http://localhost:8002/retrieve_task_memory", {
422
+ method: "POST",
423
+ headers: {
424
+ "Content-Type": "application/json",
425
+ },
426
+ body: JSON.stringify({
427
+ workspace_id: "task_workspace",
428
+ query: "How to efficiently manage project progress?",
429
+ top_k: 1
430
+ })
431
+ })
432
+ .then(response => response.json())
433
+ .then(data => console.log(data));
434
+ ```
435
+
436
+ </details>
437
+
438
+ #### Personal Memory Management
439
+
366
440
  ```python
367
- # 记忆整合:从用户交互中学习
441
+ # Memory Integration: Learn from user interactions
368
442
  response = requests.post("http://localhost:8002/summary_personal_memory", json={
369
443
  "workspace_id": "task_workspace",
370
444
  "trajectories": [
371
445
  {"messages":
372
446
  [
373
- {"role": "user", "content": "我喜欢早上喝咖啡工作"},
374
- {"role": "assistant", "content": "了解,您习惯早上用咖啡提神来开始工作"}
447
+ {"role": "user", "content": "I like to drink coffee while working in the morning"},
448
+ {"role": "assistant",
449
+ "content": "I understand, you prefer to start your workday with coffee to stay energized"}
375
450
  ]
376
451
  }
377
452
  ]
378
453
  })
379
454
 
380
- # 记忆检索:获取个人记忆片段
455
+ # Memory Retrieval: Get personal memory fragments
381
456
  response = requests.post("http://localhost:8002/retrieve_personal_memory", json={
382
457
  "workspace_id": "task_workspace",
383
- "query": "用户的工作习惯是什么?",
458
+ "query": "What are the user's work habits?",
384
459
  "top_k": 5
385
460
  })
386
461
  ```
387
462
 
388
- ---
389
-
390
- ## 🧪 实验结果
463
+ <details>
464
+ <summary>curl version</summary>
391
465
 
392
- ### Appworld基准测试
393
- 使用qwen3-8b在Appworld上的测试结果:
394
-
395
- | 方法 | pass@1 | pass@2 | pass@4 |
396
- |----------------------------|-----------|-------------|-----------|
397
- | 无记忆(基线) | 0.083 | 0.140 | 0.228 |
398
- | **使用任务经验** | **0.109** | **0.175** | **0.281** |
466
+ ```bash
467
+ # Memory Integration: Learn from user interactions
468
+ curl -X POST http://localhost:8002/summary_personal_memory \
469
+ -H "Content-Type: application/json" \
470
+ -d '{
471
+ "workspace_id": "task_workspace",
472
+ "trajectories": [
473
+ {"messages": [
474
+ {"role": "user", "content": "I like to drink coffee while working in the morning"},
475
+ {"role": "assistant", "content": "I understand, you prefer to start your workday with coffee to stay energized"}
476
+ ]}
477
+ ]
478
+ }'
399
479
 
400
- 详见:[quickstart.md](cookbook/appworld/quickstart.md)
480
+ # Memory Retrieval: Get personal memory fragments
481
+ curl -X POST http://localhost:8002/retrieve_personal_memory \
482
+ -H "Content-Type: application/json" \
483
+ -d '{
484
+ "workspace_id": "task_workspace",
485
+ "query": "What are the user's work habits?",
486
+ "top_k": 5
487
+ }'
488
+ ```
401
489
 
402
- ### FrozenLake实验
403
- 使用qwen3-8b在100个随机FrozenLake地图上测试:
490
+ </details>
491
+
492
+ <details>
493
+ <summary>Node.js version</summary>
494
+
495
+ ```javascript
496
+ // Memory Integration: Learn from user interactions
497
+ fetch("http://localhost:8002/summary_personal_memory", {
498
+ method: "POST",
499
+ headers: {
500
+ "Content-Type": "application/json",
501
+ },
502
+ body: JSON.stringify({
503
+ workspace_id: "task_workspace",
504
+ trajectories: [
505
+ {messages: [
506
+ {role: "user", content: "I like to drink coffee while working in the morning"},
507
+ {role: "assistant", content: "I understand, you prefer to start your workday with coffee to stay energized"}
508
+ ]}
509
+ ]
510
+ })
511
+ })
512
+ .then(response => response.json())
513
+ .then(data => console.log(data));
514
+
515
+ // Memory Retrieval: Get personal memory fragments
516
+ fetch("http://localhost:8002/retrieve_personal_memory", {
517
+ method: "POST",
518
+ headers: {
519
+ "Content-Type": "application/json",
520
+ },
521
+ body: JSON.stringify({
522
+ workspace_id: "task_workspace",
523
+ query: "What are the user's work habits?",
524
+ top_k: 5
525
+ })
526
+ })
527
+ .then(response => response.json())
528
+ .then(data => console.log(data));
529
+ ```
404
530
 
405
- | 方法 | 通过率 |
406
- |---------------------------|-----------------|
407
- | 无记忆(基线) | 0.66 |
408
- | **使用任务经验** | 0.72 **(+9.1%)** |
531
+ </details>
409
532
 
410
- | 无经验 | 有经验 |
411
- |:----------------------------------------------------------:|:---------------------------------------:|
412
- | <p align="center"><img src="doc/figure/frozenlake_failure.gif" alt="失败案例" width="30%"></p> | <p align="center"><img src="doc/figure/frozenlake_success.gif" alt="成功案例" width="30%"></p>
533
+ ---
413
534
 
414
- 详见:[quickstart.md](cookbook/frozenlake/quickstart.md)
535
+ ## 📦 Ready-to-Use Libraries
415
536
 
416
- ---
537
+ ReMe provides pre-built memory libraries that agents can immediately use with verified best practices:
417
538
 
418
- ## 📦 即用型经验库
539
+ ### Available Libraries
419
540
 
420
- ReMe.ai提供预构建的经验库,智能体可以立即使用经过验证的最佳实践:
541
+ - **`appworld.jsonl`**: Memory library for Appworld agent interactions, covering complex task planning and execution
542
+ patterns
543
+ - **`bfcl_v3.jsonl`**: Working memory library for BFCL tool calls
421
544
 
422
- ### 可用经验库
423
- - **`appworld_v1.jsonl`**:Appworld智能体交互的记忆库,涵盖复杂任务规划和执行模式
424
- - **`bfcl_v1.jsonl`**:BFCL工具调用的工作记忆库
545
+ ### Quick Usage
425
546
 
426
- ### 快速使用
427
547
  ```python
428
- # 加载预构建经验
548
+ # Load pre-built memories
429
549
  response = requests.post("http://localhost:8002/vector_store", json={
430
- "workspace_id": "appworld_v1",
550
+ "workspace_id": "appworld",
431
551
  "action": "load",
432
552
  "path": "./library/"
433
553
  })
434
554
 
435
- # 查询相关经验
555
+ # Query relevant memories
436
556
  response = requests.post("http://localhost:8002/retrieve_task_memory", json={
437
- "workspace_id": "appworld_v1",
438
- "query": "如何导航到设置并更新用户资料?",
557
+ "workspace_id": "appworld",
558
+ "query": "How to navigate to settings and update user profile?",
439
559
  "top_k": 1
440
560
  })
441
561
  ```
442
562
 
443
- ## 📚 相关资源
563
+ ## 🧪 Experiments
444
564
 
445
- - **[快速开始](./cookbook/simple_demo/quick_start.md)**:通过实际示例快速上手
446
- - **[向量存储设置](./doc/vector_store_setup.md)**:生产部署指南
447
- - **[配置指南](./doc/configuration_guide.md)**:详细配置参考
448
- - **[操作文档](./doc/operations_documentation.md)**:操作配置说明
449
- - **[示例集合](./cookbook)**:实际用例和最佳实践
565
+ ### 🌍 [Appworld Experiment](./cookbook/appworld/quickstart.md)
566
+
567
+ We tested ReMe on Appworld using qwen3-8b:
568
+
569
+ | Method | pass@1 | pass@2 | pass@4 |
570
+ |--------------|-------------------|-------------------|-------------------|
571
+ | without ReMe | 0.083 | 0.140 | 0.228 |
572
+ | with ReMe | 0.109 **(+2.6%)** | 0.175 **(+3.5%)** | 0.281 **(+5.3%)** |
573
+
574
+ Pass@K measures the probability that at least one of the K generated samples successfully completes the task (
575
+ score=1).
576
+ The current experiment uses an internal AppWorld environment, which may have slight differences.
577
+
578
+ You can find more details on reproducing the experiment in [quickstart.md](cookbook/appworld/quickstart.md).
579
+
580
+ ### 🧊 [Frozenlake Experiment](./cookbook/frozenlake/quickstart.md)
581
+
582
+ | without ReMe | with ReMe |
583
+ |:--------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------:|
584
+ | <p align="center"><img src="docs/figure/frozenlake_failure.gif" alt="GIF 1" width="30%"></p> | <p align="center"><img src="docs/figure/frozenlake_success.gif" alt="GIF 2" width="30%"></p> |
585
+
586
+ We tested on 100 random frozenlake maps using qwen3-8b:
587
+
588
+ | Method | pass rate |
589
+ |--------------|------------------|
590
+ | without ReMe | 0.66 |
591
+ | with ReMe | 0.72 **(+6.0%)** |
592
+
593
+ You can find more details on reproducing the experiment in [quickstart.md](cookbook/frozenlake/quickstart.md).
594
+
595
+ ### 🔧 [BFCL-V3 Experiment](./cookbook/bfcl/quickstart.md)
596
+
597
+ We tested ReMe on BFCL-V3 multi-turn-base (randomly split 50train/150val) using qwen3-8b:
598
+
599
+ | Method | pass@1 | pass@2 | pass@4 |
600
+ |--------------|---------------------|---------------------|---------------------|
601
+ | without ReMe | 0.2472 | 0.2733 | 0.2922 |
602
+ | with ReMe | 0.3061 **(+5.89%)** | 0.3500 **(+7.67%)** | 0.3888 **(+9.66%)** |
603
+
604
+ ## 📚 Resources
605
+
606
+ - **[Quick Start](./cookbook/simple_demo)**: Get started quickly with practical examples
607
+ - **[Vector Storage Setup](docs/vector_store_api_guide.md)**: Configure local/vector databases and usage
608
+ - **[MCP Guide](docs/mcp_quick_start.md)**: Create MCP services
609
+ - **[personal memory](docs/personal_memory)** & **[task memory](docs/task_memory)** : Operators used in personal memory and task memory, You can modify the config to customize the pipelines.
610
+ - **[Example Collection](./cookbook)**: Real use cases and best practices
450
611
 
451
612
  ---
452
613
 
453
- ## 🤝 贡献
614
+ ## 🤝 Contribution
615
+
616
+ We believe the best memory systems come from collective wisdom. Contributions welcome 👉[Guide](docs/contribution.md):
617
+
618
+ ### Code Contributions
619
+
620
+ - New operation and tool development
621
+ - Backend implementation and optimization
622
+ - API enhancements and new endpoints
454
623
 
455
- 我们相信最好的记忆系统来自集体智慧。欢迎贡献:
624
+ ### Documentation Improvements
456
625
 
457
- ### 代码贡献
458
- - 新操作和工具开发
459
- - 后端实现和优化
460
- - API增强和新端点
626
+ - Usage examples and tutorials
627
+ - Best practice guides
461
628
 
462
- ### 文档改进
463
- - 使用示例和教程
464
- - 最佳实践指南
465
- - 翻译和本地化
466
629
 
467
630
  ---
468
631
 
469
- ## 📄 引用
632
+ ## 📄 Citation
470
633
 
471
634
  ```bibtex
472
635
  @software{ReMe2025,
473
- title = {ReMe.ai: Memory-Driven AI Agent Framework},
474
- author = {The ReMe.ai Team},
475
- url = {https://github.com/modelscope/ReMe.ai},
636
+ title = {ReMe: Memory Framework for AI Agent},
637
+ author = {Li Yu, Jiaji Deng, Zouying Cao},
638
+ url = {https://github.com/modelscope/ReMe},
476
639
  year = {2025}
477
640
  }
478
641
  ```
479
642
 
480
643
  ---
481
644
 
482
- ## ⚖️ 许可证
645
+ ## ⚖️ License
483
646
 
484
- 本项目采用Apache License 2.0许可证 - 详情请参阅[LICENSE](./LICENSE)文件。
647
+ This project is licensed under the Apache License 2.0 - see the [LICENSE](./LICENSE) file for details.
485
648
 
486
649
  ---