Name | reme-ai JSON |
Version |
0.1.8
JSON |
| download |
home_page | None |
Summary | Remember me |
upload_time | 2025-09-08 08:33:52 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.12 |
license | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2025 Alibaba Group
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
|
keywords |
llm
memory
experience
memoryscope
ai
mcp
http
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
English | [**δΈζ**](./README_ZH.md)
<p align="center">
<img src="docs/figure/reme_logo.png" alt="ReMe Logo" width="50%">
</p>
<p align="center">
<a href="https://pypi.org/project/reme-ai/"><img src="https://img.shields.io/badge/python-3.12+-blue" alt="Python Version"></a>
<a href="https://pypi.org/project/reme-ai/"><img src="https://img.shields.io/badge/pypi-v0.1-blue?logo=pypi" alt="PyPI Version"></a>
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-black" alt="License"></a>
<a href="https://github.com/modelscope/ReMe"><img src="https://img.shields.io/github/stars/modelscope/ReMe?style=social" alt="GitHub Stars"></a>
</p>
<p align="center">
<strong>ReMe (formerly MemoryScope): Memory Management Framework for Agents</strong><br>
<em>Remember Me, Refine Me.</em>
</p>
---
ReMe provides AI agents with a unified memory systemβenabling the ability to extract, reuse, and share memories across
users, tasks, and agents.
```
Personal Memory + Task Memory = Agent Memory
```
Personal memory helps "**understand user preferences**", while task memory helps agents "**perform better**".
---
## π° Latest Updates
- **[2025-09]** π ReMe v0.1
officially released, integrating task memory and personal memory. If you want to use the original memoryscope project,
you can find it in [MemoryScope](https://github.com/modelscope/Reme/tree/memoryscope_branch).
- **[2025-09]** π§ͺ We validated the effectiveness of task memory extraction and reuse in agents in appworld, bfcl(v3),
and frozenlake environments. For more information,
check [appworld exp](./cookbook/appworld/quickstart.md), [bfcl exp](./cookbook/bfcl/quickstart.md),
and [frozenlake exp](./cookbook/frozenlake/quickstart.md).
- **[2025-08]** π MCP protocol support is now available -> [MCP Quick Start](docs/mcp_quick_start.md).
- **[2025-06]** π Multiple backend vector storage support (Elasticsearch &
ChromaDB) -> [Vector DB quick start](docs/vector_store_api_guide.md).
- **[2024-09]** π§ [MemoryScope](https://github.com/modelscope/Reme/tree/memoryscope_branch) v0.1 released,
personalized and time-aware memory storage and usage.
---
## β¨ Architecture Design
<p align="center">
<img src="docs/figure/reme_structure.jpg" alt="ReMe Logo" width="100%">
</p>
ReMe integrates two complementary memory capabilities:
#### π§ **Task Memory/Experience**
Procedural knowledge reused across agents
- **Success Pattern Recognition**: Identify effective strategies and understand their underlying principles
- **Failure Analysis Learning**: Learn from mistakes and avoid repeating the same issues
- **Comparative Patterns**: Different sampling trajectories provide more valuable memories through comparison
- **Validation Patterns**: Confirm the effectiveness of extracted memories through validation modules
Learn more about how to use task memory from [task memory](docs/task_memory/task_memory.md)
#### π€ **Personal Memory**
Contextualized memory for specific users
- **Individual Preferences**: User habits, preferences, and interaction styles
- **Contextual Adaptation**: Intelligent memory management based on time and context
- **Progressive Learning**: Gradually build deep understanding through long-term interaction
- **Time Awareness**: Time sensitivity in both retrieval and integration
Learn more about how to use personal memory from [personal memory](docs/personal_memory/personal_memory.md)
---
## π οΈ Installation
### Install from PyPI (Recommended)
```bash
pip install reme-ai
```
### Install from Source
```bash
git clone https://github.com/modelscope/ReMe.git
cd ReMe
pip install .
```
### Environment Configuration
Copy `example.env` to .env and modify the corresponding parameters:
```bash
# Required: LLM API Configuration
FLOW_LLM_API_KEY=sk-xxxx
FLOW_LLM_BASE_URL=https://xxxx/v1
# Required: Embedding Model Configuration
FLOW_EMBEDDING_API_KEY=sk-xxxx
FLOW_EMBEDDING_BASE_URL=https://xxxx/v1
```
---
## π Quick Start
### HTTP Service Startup
```bash
reme \
backend=http \
http.port=8002 \
llm.default.model_name=qwen3-30b-a3b-thinking-2507 \
embedding_model.default.model_name=text-embedding-v4 \
vector_store.default.backend=local
```
### MCP Server Support
```bash
reme \
backend=mcp \
mcp.transport=stdio \
llm.default.model_name=qwen3-30b-a3b-thinking-2507 \
embedding_model.default.model_name=text-embedding-v4 \
vector_store.default.backend=local
```
### Core API Usage
#### Task Memory Management
```python
import requests
# Experience Summarizer: Learn from execution trajectories
response = requests.post("http://localhost:8002/summary_task_memory", json={
"workspace_id": "task_workspace",
"trajectories": [
{"messages": [{"role": "user", "content": "Help me create a project plan"}], "score": 1.0}
]
})
# Retriever: Get relevant memories
response = requests.post("http://localhost:8002/retrieve_task_memory", json={
"workspace_id": "task_workspace",
"query": "How to efficiently manage project progress?",
"top_k": 1
})
```
<details>
<summary>curl version</summary>
```bash
# Experience Summarizer: Learn from execution trajectories
curl -X POST http://localhost:8002/summary_task_memory \
-H "Content-Type: application/json" \
-d '{
"workspace_id": "task_workspace",
"trajectories": [
{"messages": [{"role": "user", "content": "Help me create a project plan"}], "score": 1.0}
]
}'
# Retriever: Get relevant memories
curl -X POST http://localhost:8002/retrieve_task_memory \
-H "Content-Type: application/json" \
-d '{
"workspace_id": "task_workspace",
"query": "How to efficiently manage project progress?",
"top_k": 1
}'
```
</details>
<details>
<summary>Node.js version</summary>
```javascript
// Experience Summarizer: Learn from execution trajectories
fetch("http://localhost:8002/summary_task_memory", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
workspace_id: "task_workspace",
trajectories: [
{messages: [{role: "user", content: "Help me create a project plan"}], score: 1.0}
]
})
})
.then(response => response.json())
.then(data => console.log(data));
// Retriever: Get relevant memories
fetch("http://localhost:8002/retrieve_task_memory", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
workspace_id: "task_workspace",
query: "How to efficiently manage project progress?",
top_k: 1
})
})
.then(response => response.json())
.then(data => console.log(data));
```
</details>
#### Personal Memory Management
```python
# Memory Integration: Learn from user interactions
response = requests.post("http://localhost:8002/summary_personal_memory", json={
"workspace_id": "task_workspace",
"trajectories": [
{"messages":
[
{"role": "user", "content": "I like to drink coffee while working in the morning"},
{"role": "assistant",
"content": "I understand, you prefer to start your workday with coffee to stay energized"}
]
}
]
})
# Memory Retrieval: Get personal memory fragments
response = requests.post("http://localhost:8002/retrieve_personal_memory", json={
"workspace_id": "task_workspace",
"query": "What are the user's work habits?",
"top_k": 5
})
```
<details>
<summary>curl version</summary>
```bash
# Memory Integration: Learn from user interactions
curl -X POST http://localhost:8002/summary_personal_memory \
-H "Content-Type: application/json" \
-d '{
"workspace_id": "task_workspace",
"trajectories": [
{"messages": [
{"role": "user", "content": "I like to drink coffee while working in the morning"},
{"role": "assistant", "content": "I understand, you prefer to start your workday with coffee to stay energized"}
]}
]
}'
# Memory Retrieval: Get personal memory fragments
curl -X POST http://localhost:8002/retrieve_personal_memory \
-H "Content-Type: application/json" \
-d '{
"workspace_id": "task_workspace",
"query": "What are the user's work habits?",
"top_k": 5
}'
```
</details>
<details>
<summary>Node.js version</summary>
```javascript
// Memory Integration: Learn from user interactions
fetch("http://localhost:8002/summary_personal_memory", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
workspace_id: "task_workspace",
trajectories: [
{messages: [
{role: "user", content: "I like to drink coffee while working in the morning"},
{role: "assistant", content: "I understand, you prefer to start your workday with coffee to stay energized"}
]}
]
})
})
.then(response => response.json())
.then(data => console.log(data));
// Memory Retrieval: Get personal memory fragments
fetch("http://localhost:8002/retrieve_personal_memory", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
workspace_id: "task_workspace",
query: "What are the user's work habits?",
top_k: 5
})
})
.then(response => response.json())
.then(data => console.log(data));
```
</details>
---
## π¦ Ready-to-Use Libraries
ReMe provides pre-built memory libraries that agents can immediately use with verified best practices:
### Available Libraries
- **`appworld.jsonl`**: Memory library for Appworld agent interactions, covering complex task planning and execution
patterns
- **`bfcl_v3.jsonl`**: Working memory library for BFCL tool calls
### Quick Usage
```python
# Load pre-built memories
response = requests.post("http://localhost:8002/vector_store", json={
"workspace_id": "appworld",
"action": "load",
"path": "./docs/library/"
})
# Query relevant memories
response = requests.post("http://localhost:8002/retrieve_task_memory", json={
"workspace_id": "appworld",
"query": "How to navigate to settings and update user profile?",
"top_k": 1
})
```
## π§ͺ Experiments
### π [Appworld Experiment](./cookbook/appworld/quickstart.md)
We tested ReMe on Appworld using qwen3-8b:
| Method | pass@1 | pass@2 | pass@4 |
|--------------|-------------------|-------------------|-------------------|
| without ReMe | 0.083 | 0.140 | 0.228 |
| with ReMe | 0.109 **(+2.6%)** | 0.175 **(+3.5%)** | 0.281 **(+5.3%)** |
Pass@K measures the probability that at least one of the K generated samples successfully completes the task (
score=1).
The current experiment uses an internal AppWorld environment, which may have slight differences.
You can find more details on reproducing the experiment in [quickstart.md](cookbook/appworld/quickstart.md).
### π§ [Frozenlake Experiment](./cookbook/frozenlake/quickstart.md)
| without ReMe | with ReMe |
|:--------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------:|
| <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> |
We tested on 100 random frozenlake maps using qwen3-8b:
| Method | pass rate |
|--------------|------------------|
| without ReMe | 0.66 |
| with ReMe | 0.72 **(+6.0%)** |
You can find more details on reproducing the experiment in [quickstart.md](cookbook/frozenlake/quickstart.md).
### π§ [BFCL-V3 Experiment](./cookbook/bfcl/quickstart.md)
We tested ReMe on BFCL-V3 multi-turn-base (randomly split 50train/150val) using qwen3-8b:
| Method | pass@1 | pass@2 | pass@4 |
|--------------|---------------------|---------------------|---------------------|
| without ReMe | 0.2472 | 0.2733 | 0.2922 |
| with ReMe | 0.3061 **(+5.89%)** | 0.3500 **(+7.67%)** | 0.3888 **(+9.66%)** |
## π Resources
- **[Quick Start](./cookbook/simple_demo)**: Get started quickly with practical examples
- **[Vector Storage Setup](docs/vector_store_api_guide.md)**: Configure local/vector databases and usage
- **[MCP Guide](docs/mcp_quick_start.md)**: Create MCP services
- **[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.
- **[Example Collection](./cookbook)**: Real use cases and best practices
---
## π€ Contribution
We believe the best memory systems come from collective wisdom. Contributions welcome π[Guide](docs/contribution.md):
### Code Contributions
- New operation and tool development
- Backend implementation and optimization
- API enhancements and new endpoints
### Documentation Improvements
- Usage examples and tutorials
- Best practice guides
---
## π Citation
```bibtex
@software{ReMe2025,
title = {ReMe: Memory Management Framework for Agents},
author = {Li Yu, Jiaji Deng, Zouying Cao},
url = {https://github.com/modelscope/ReMe},
year = {2025}
}
```
---
## βοΈ License
This project is licensed under the Apache License 2.0 - see the [LICENSE](./LICENSE) file for details.
---
Raw data
{
"_id": null,
"home_page": null,
"name": "reme-ai",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "llm, memory, experience, memoryscope, ai, mcp, http",
"author": null,
"author_email": "\"jinli.yl\" <jinli.yl@alibaba-inc.com>, \"dengjiaji.djj\" <dengjiaji.djj@alibaba-inc.com>, \"caozouying.czy\" <caozouying.czy@alibaba-inc.com>",
"download_url": "https://files.pythonhosted.org/packages/3f/e0/c6a2a320a5d1287c89e019eeab11a8a9ae04f30e994f75cddaa4b5d893ce/reme_ai-0.1.8.tar.gz",
"platform": null,
"description": "English | [**\u4e2d\u6587**](./README_ZH.md)\n\n<p align=\"center\">\n <img src=\"docs/figure/reme_logo.png\" alt=\"ReMe Logo\" width=\"50%\">\n</p>\n\n<p align=\"center\">\n <a href=\"https://pypi.org/project/reme-ai/\"><img src=\"https://img.shields.io/badge/python-3.12+-blue\" alt=\"Python Version\"></a>\n <a href=\"https://pypi.org/project/reme-ai/\"><img src=\"https://img.shields.io/badge/pypi-v0.1-blue?logo=pypi\" alt=\"PyPI Version\"></a>\n <a href=\"./LICENSE\"><img src=\"https://img.shields.io/badge/license-Apache--2.0-black\" alt=\"License\"></a>\n <a href=\"https://github.com/modelscope/ReMe\"><img src=\"https://img.shields.io/github/stars/modelscope/ReMe?style=social\" alt=\"GitHub Stars\"></a>\n</p>\n\n<p align=\"center\">\n <strong>ReMe (formerly MemoryScope): Memory Management Framework for Agents</strong><br>\n <em>Remember Me, Refine Me.</em>\n</p>\n\n---\nReMe provides AI agents with a unified memory system\u2014enabling the ability to extract, reuse, and share memories across\nusers, tasks, and agents.\n\n```\nPersonal Memory + Task Memory = Agent Memory\n```\n\nPersonal memory helps \"**understand user preferences**\", while task memory helps agents \"**perform better**\".\n\n---\n\n## \ud83d\udcf0 Latest Updates\n\n- **[2025-09]** \ud83c\udf89 ReMe v0.1\n officially released, integrating task memory and personal memory. If you want to use the original memoryscope project,\n you can find it in [MemoryScope](https://github.com/modelscope/Reme/tree/memoryscope_branch).\n- **[2025-09]** \ud83e\uddea We validated the effectiveness of task memory extraction and reuse in agents in appworld, bfcl(v3),\n and frozenlake environments. For more information,\n check [appworld exp](./cookbook/appworld/quickstart.md), [bfcl exp](./cookbook/bfcl/quickstart.md),\n and [frozenlake exp](./cookbook/frozenlake/quickstart.md).\n- **[2025-08]** \ud83d\ude80 MCP protocol support is now available -> [MCP Quick Start](docs/mcp_quick_start.md).\n- **[2025-06]** \ud83d\ude80 Multiple backend vector storage support (Elasticsearch &\n ChromaDB) -> [Vector DB quick start](docs/vector_store_api_guide.md).\n- **[2024-09]** \ud83e\udde0 [MemoryScope](https://github.com/modelscope/Reme/tree/memoryscope_branch) v0.1 released,\n personalized and time-aware memory storage and usage.\n\n---\n\n## \u2728 Architecture Design\n\n<p align=\"center\">\n <img src=\"docs/figure/reme_structure.jpg\" alt=\"ReMe Logo\" width=\"100%\">\n</p>\n\nReMe integrates two complementary memory capabilities:\n\n#### \ud83e\udde0 **Task Memory/Experience**\n\nProcedural knowledge reused across agents\n\n- **Success Pattern Recognition**: Identify effective strategies and understand their underlying principles\n- **Failure Analysis Learning**: Learn from mistakes and avoid repeating the same issues\n- **Comparative Patterns**: Different sampling trajectories provide more valuable memories through comparison\n- **Validation Patterns**: Confirm the effectiveness of extracted memories through validation modules\n\nLearn more about how to use task memory from [task memory](docs/task_memory/task_memory.md)\n\n#### \ud83d\udc64 **Personal Memory**\n\nContextualized memory for specific users\n\n- **Individual Preferences**: User habits, preferences, and interaction styles\n- **Contextual Adaptation**: Intelligent memory management based on time and context\n- **Progressive Learning**: Gradually build deep understanding through long-term interaction\n- **Time Awareness**: Time sensitivity in both retrieval and integration\n\nLearn more about how to use personal memory from [personal memory](docs/personal_memory/personal_memory.md)\n\n---\n\n## \ud83d\udee0\ufe0f Installation\n\n### Install from PyPI (Recommended)\n\n```bash\npip install reme-ai\n```\n\n### Install from Source\n\n```bash\ngit clone https://github.com/modelscope/ReMe.git\ncd ReMe\npip install .\n```\n\n### Environment Configuration\n\nCopy `example.env` to .env and modify the corresponding parameters:\n\n```bash\n# Required: LLM API Configuration\nFLOW_LLM_API_KEY=sk-xxxx\nFLOW_LLM_BASE_URL=https://xxxx/v1\n\n# Required: Embedding Model Configuration \nFLOW_EMBEDDING_API_KEY=sk-xxxx\nFLOW_EMBEDDING_BASE_URL=https://xxxx/v1\n```\n\n---\n\n## \ud83d\ude80 Quick Start\n\n### HTTP Service Startup\n\n```bash\nreme \\\n backend=http \\\n http.port=8002 \\\n llm.default.model_name=qwen3-30b-a3b-thinking-2507 \\\n embedding_model.default.model_name=text-embedding-v4 \\\n vector_store.default.backend=local\n```\n\n### MCP Server Support\n\n```bash\nreme \\\n backend=mcp \\\n mcp.transport=stdio \\\n llm.default.model_name=qwen3-30b-a3b-thinking-2507 \\\n embedding_model.default.model_name=text-embedding-v4 \\\n vector_store.default.backend=local\n```\n\n### Core API Usage\n\n#### Task Memory Management\n\n```python\nimport requests\n\n# Experience Summarizer: Learn from execution trajectories\nresponse = requests.post(\"http://localhost:8002/summary_task_memory\", json={\n \"workspace_id\": \"task_workspace\",\n \"trajectories\": [\n {\"messages\": [{\"role\": \"user\", \"content\": \"Help me create a project plan\"}], \"score\": 1.0}\n ]\n})\n\n# Retriever: Get relevant memories\nresponse = requests.post(\"http://localhost:8002/retrieve_task_memory\", json={\n \"workspace_id\": \"task_workspace\",\n \"query\": \"How to efficiently manage project progress?\",\n \"top_k\": 1\n})\n```\n\n<details>\n<summary>curl version</summary>\n\n```bash\n# Experience Summarizer: Learn from execution trajectories\ncurl -X POST http://localhost:8002/summary_task_memory \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"workspace_id\": \"task_workspace\",\n \"trajectories\": [\n {\"messages\": [{\"role\": \"user\", \"content\": \"Help me create a project plan\"}], \"score\": 1.0}\n ]\n }'\n\n# Retriever: Get relevant memories\ncurl -X POST http://localhost:8002/retrieve_task_memory \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"workspace_id\": \"task_workspace\",\n \"query\": \"How to efficiently manage project progress?\",\n \"top_k\": 1\n }'\n```\n\n</details>\n\n<details>\n<summary>Node.js version</summary>\n\n```javascript\n// Experience Summarizer: Learn from execution trajectories\nfetch(\"http://localhost:8002/summary_task_memory\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n workspace_id: \"task_workspace\",\n trajectories: [\n {messages: [{role: \"user\", content: \"Help me create a project plan\"}], score: 1.0}\n ]\n })\n})\n.then(response => response.json())\n.then(data => console.log(data));\n\n// Retriever: Get relevant memories\nfetch(\"http://localhost:8002/retrieve_task_memory\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n workspace_id: \"task_workspace\",\n query: \"How to efficiently manage project progress?\",\n top_k: 1\n })\n})\n.then(response => response.json())\n.then(data => console.log(data));\n```\n\n</details>\n\n#### Personal Memory Management\n\n```python\n# Memory Integration: Learn from user interactions\nresponse = requests.post(\"http://localhost:8002/summary_personal_memory\", json={\n \"workspace_id\": \"task_workspace\",\n \"trajectories\": [\n {\"messages\":\n [\n {\"role\": \"user\", \"content\": \"I like to drink coffee while working in the morning\"},\n {\"role\": \"assistant\",\n \"content\": \"I understand, you prefer to start your workday with coffee to stay energized\"}\n ]\n }\n ]\n})\n\n# Memory Retrieval: Get personal memory fragments\nresponse = requests.post(\"http://localhost:8002/retrieve_personal_memory\", json={\n \"workspace_id\": \"task_workspace\",\n \"query\": \"What are the user's work habits?\",\n \"top_k\": 5\n})\n```\n\n<details>\n<summary>curl version</summary>\n\n```bash\n# Memory Integration: Learn from user interactions\ncurl -X POST http://localhost:8002/summary_personal_memory \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"workspace_id\": \"task_workspace\",\n \"trajectories\": [\n {\"messages\": [\n {\"role\": \"user\", \"content\": \"I like to drink coffee while working in the morning\"},\n {\"role\": \"assistant\", \"content\": \"I understand, you prefer to start your workday with coffee to stay energized\"}\n ]}\n ]\n }'\n\n# Memory Retrieval: Get personal memory fragments\ncurl -X POST http://localhost:8002/retrieve_personal_memory \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"workspace_id\": \"task_workspace\",\n \"query\": \"What are the user's work habits?\",\n \"top_k\": 5\n }'\n```\n\n</details>\n\n<details>\n<summary>Node.js version</summary>\n\n```javascript\n// Memory Integration: Learn from user interactions\nfetch(\"http://localhost:8002/summary_personal_memory\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n workspace_id: \"task_workspace\",\n trajectories: [\n {messages: [\n {role: \"user\", content: \"I like to drink coffee while working in the morning\"},\n {role: \"assistant\", content: \"I understand, you prefer to start your workday with coffee to stay energized\"}\n ]}\n ]\n })\n})\n.then(response => response.json())\n.then(data => console.log(data));\n\n// Memory Retrieval: Get personal memory fragments\nfetch(\"http://localhost:8002/retrieve_personal_memory\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n workspace_id: \"task_workspace\",\n query: \"What are the user's work habits?\",\n top_k: 5\n })\n})\n.then(response => response.json())\n.then(data => console.log(data));\n```\n\n</details>\n\n---\n\n## \ud83d\udce6 Ready-to-Use Libraries\n\nReMe provides pre-built memory libraries that agents can immediately use with verified best practices:\n\n### Available Libraries\n\n- **`appworld.jsonl`**: Memory library for Appworld agent interactions, covering complex task planning and execution\n patterns\n- **`bfcl_v3.jsonl`**: Working memory library for BFCL tool calls\n\n### Quick Usage\n\n```python\n# Load pre-built memories\nresponse = requests.post(\"http://localhost:8002/vector_store\", json={\n \"workspace_id\": \"appworld\",\n \"action\": \"load\",\n \"path\": \"./docs/library/\"\n})\n\n# Query relevant memories\nresponse = requests.post(\"http://localhost:8002/retrieve_task_memory\", json={\n \"workspace_id\": \"appworld\",\n \"query\": \"How to navigate to settings and update user profile?\",\n \"top_k\": 1\n})\n```\n\n## \ud83e\uddea Experiments\n\n### \ud83c\udf0d [Appworld Experiment](./cookbook/appworld/quickstart.md)\n\nWe tested ReMe on Appworld using qwen3-8b:\n\n| Method | pass@1 | pass@2 | pass@4 |\n|--------------|-------------------|-------------------|-------------------|\n| without ReMe | 0.083 | 0.140 | 0.228 |\n| with ReMe | 0.109 **(+2.6%)** | 0.175 **(+3.5%)** | 0.281 **(+5.3%)** |\n\nPass@K measures the probability that at least one of the K generated samples successfully completes the task (\nscore=1). \nThe current experiment uses an internal AppWorld environment, which may have slight differences.\n\nYou can find more details on reproducing the experiment in [quickstart.md](cookbook/appworld/quickstart.md).\n\n### \ud83e\uddca [Frozenlake Experiment](./cookbook/frozenlake/quickstart.md)\n\n| without ReMe | with ReMe |\n|:--------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------:|\n| <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> |\n\nWe tested on 100 random frozenlake maps using qwen3-8b:\n\n| Method | pass rate |\n|--------------|------------------|\n| without ReMe | 0.66 |\n| with ReMe | 0.72 **(+6.0%)** |\n\nYou can find more details on reproducing the experiment in [quickstart.md](cookbook/frozenlake/quickstart.md).\n\n### \ud83d\udd27 [BFCL-V3 Experiment](./cookbook/bfcl/quickstart.md)\n\nWe tested ReMe on BFCL-V3 multi-turn-base (randomly split 50train/150val) using qwen3-8b:\n\n| Method | pass@1 | pass@2 | pass@4 |\n|--------------|---------------------|---------------------|---------------------|\n| without ReMe | 0.2472 | 0.2733 | 0.2922 |\n| with ReMe | 0.3061 **(+5.89%)** | 0.3500 **(+7.67%)** | 0.3888 **(+9.66%)** |\n\n## \ud83d\udcda Resources\n\n- **[Quick Start](./cookbook/simple_demo)**: Get started quickly with practical examples\n- **[Vector Storage Setup](docs/vector_store_api_guide.md)**: Configure local/vector databases and usage\n- **[MCP Guide](docs/mcp_quick_start.md)**: Create MCP services\n- **[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.\n- **[Example Collection](./cookbook)**: Real use cases and best practices\n\n---\n\n## \ud83e\udd1d Contribution\n\nWe believe the best memory systems come from collective wisdom. Contributions welcome \ud83d\udc49[Guide](docs/contribution.md):\n\n### Code Contributions\n\n- New operation and tool development\n- Backend implementation and optimization\n- API enhancements and new endpoints\n\n### Documentation Improvements\n\n- Usage examples and tutorials\n- Best practice guides\n\n\n---\n\n## \ud83d\udcc4 Citation\n\n```bibtex\n@software{ReMe2025,\n title = {ReMe: Memory Management Framework for Agents},\n author = {Li Yu, Jiaji Deng, Zouying Cao},\n url = {https://github.com/modelscope/ReMe},\n year = {2025}\n}\n```\n\n---\n\n## \u2696\ufe0f License\n\nThis project is licensed under the Apache License 2.0 - see the [LICENSE](./LICENSE) file for details.\n\n---\n",
"bugtrack_url": null,
"license": "Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n \n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n \n 1. Definitions.\n \n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n \n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n \n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n \n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n \n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n \n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n \n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n \n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n \n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n \n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n \n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n \n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n \n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n \n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n \n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n \n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n \n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n \n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n \n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n \n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n \n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n \n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n \n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n \n END OF TERMS AND CONDITIONS\n \n APPENDIX: How to apply the Apache License to your work.\n \n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n \n Copyright 2025 Alibaba Group\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n ",
"summary": "Remember me",
"version": "0.1.8",
"project_urls": null,
"split_keywords": [
"llm",
" memory",
" experience",
" memoryscope",
" ai",
" mcp",
" http"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "cffe8c57aea4839c5f454232fc2cd408cf718c3afabdc733bdddaf9a8c1e7018",
"md5": "03bfd99ebd5c98e922ea13bbdf5738f9",
"sha256": "f8c8e2b15f6c89119620ac974282b7bbaf1c151e6f28abb85566405894f0081c"
},
"downloads": -1,
"filename": "reme_ai-0.1.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "03bfd99ebd5c98e922ea13bbdf5738f9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 126732,
"upload_time": "2025-09-08T08:33:50",
"upload_time_iso_8601": "2025-09-08T08:33:50.284849Z",
"url": "https://files.pythonhosted.org/packages/cf/fe/8c57aea4839c5f454232fc2cd408cf718c3afabdc733bdddaf9a8c1e7018/reme_ai-0.1.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3fe0c6a2a320a5d1287c89e019eeab11a8a9ae04f30e994f75cddaa4b5d893ce",
"md5": "3fa39fd7da6dbe12294bd7d6b54ff896",
"sha256": "31eb996d5a6c8cd56dee674724a4f39e7c81d4f74ddaf27ee23c6a3431ad4d47"
},
"downloads": -1,
"filename": "reme_ai-0.1.8.tar.gz",
"has_sig": false,
"md5_digest": "3fa39fd7da6dbe12294bd7d6b54ff896",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 100038,
"upload_time": "2025-09-08T08:33:52",
"upload_time_iso_8601": "2025-09-08T08:33:52.156275Z",
"url": "https://files.pythonhosted.org/packages/3f/e0/c6a2a320a5d1287c89e019eeab11a8a9ae04f30e994f75cddaa4b5d893ce/reme_ai-0.1.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-08 08:33:52",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "reme-ai"
}