reme-ai 0.1.2__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.
- reme_ai-0.1.4/PKG-INFO +649 -0
- reme_ai-0.1.4/README.md +432 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/pyproject.toml +9 -3
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/__init__.py +1 -1
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/config/default.yaml +16 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/constants/common_constants.py +0 -2
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/constants/language_constants.py +1 -1
- reme_ai-0.1.4/reme_ai/enumeration/language_enum.py +14 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/__init__.py +0 -1
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/trajectory_preprocess_op.py +2 -31
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/utils/datetime_handler.py +1 -1
- reme_ai-0.1.4/reme_ai.egg-info/PKG-INFO +649 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai.egg-info/SOURCES.txt +1 -3
- reme_ai-0.1.2/PKG-INFO +0 -215
- reme_ai-0.1.2/README.md +0 -0
- reme_ai-0.1.2/reme_ai/enumeration/language_constants.py +0 -215
- reme_ai-0.1.2/reme_ai/summary/task/pdf_preprocess_op_wrapper.py +0 -50
- reme_ai-0.1.2/reme_ai/utils/miner_u_pdf_processor.py +0 -726
- reme_ai-0.1.2/reme_ai.egg-info/PKG-INFO +0 -215
- {reme_ai-0.1.2 → reme_ai-0.1.4}/LICENSE +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/app.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/config/__init__.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/config/config_parser.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/constants/__init__.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/enumeration/__init__.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/react/__init__.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/react/simple_react_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/__init__.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/personal/__init__.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/personal/extract_time_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/personal/extract_time_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/personal/fuse_rerank_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/personal/print_memory_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/personal/print_memory_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/personal/read_message_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/personal/retrieve_memory_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/personal/semantic_rank_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/personal/set_query_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/task/__init__.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/task/build_query_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/task/build_query_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/task/merge_memory_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/task/rerank_memory_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/task/rerank_memory_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/task/rewrite_memory_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/retrieve/task/rewrite_memory_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/schema/__init__.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/schema/memory.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/__init__.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/__init__.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/contra_repeat_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/contra_repeat_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/get_observation_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/get_observation_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/get_observation_with_time_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/get_observation_with_time_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/get_reflection_subject_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/get_reflection_subject_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/info_filter_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/info_filter_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/load_today_memory_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/long_contra_repeat_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/long_contra_repeat_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/update_insight_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/personal/update_insight_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/comparative_extraction_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/comparative_extraction_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/failure_extraction_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/failure_extraction_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/memory_deduplication_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/memory_validation_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/memory_validation_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/simple_comparative_summary_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/simple_comparative_summary_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/simple_summary_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/simple_summary_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/success_extraction_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/success_extraction_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/trajectory_segmentation_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/summary/task/trajectory_segmentation_prompt.yaml +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/utils/__init__.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/utils/op_utils.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/vector_store/__init__.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/vector_store/delete_memory_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/vector_store/recall_vector_store_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/vector_store/update_memory_freq_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/vector_store/update_memory_utility_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/vector_store/update_vector_store_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai/vector_store/vector_store_action_op.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai.egg-info/dependency_links.txt +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai.egg-info/entry_points.txt +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai.egg-info/requires.txt +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/reme_ai.egg-info/top_level.txt +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/setup.cfg +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/test/test1.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/test/test2.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/test/test3.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/test/test4.py +0 -0
- {reme_ai-0.1.2 → reme_ai-0.1.4}/test/test_update_insight_op.py +0 -0
reme_ai-0.1.4/PKG-INFO
ADDED
@@ -0,0 +1,649 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: reme_ai
|
3
|
+
Version: 0.1.4
|
4
|
+
Summary: Remember me
|
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
|
+
License: Apache License
|
7
|
+
Version 2.0, January 2004
|
8
|
+
http://www.apache.org/licenses/
|
9
|
+
|
10
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
11
|
+
|
12
|
+
1. Definitions.
|
13
|
+
|
14
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
15
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
16
|
+
|
17
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
18
|
+
the copyright owner that is granting the License.
|
19
|
+
|
20
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
21
|
+
other entities that control, are controlled by, or are under common
|
22
|
+
control with that entity. For the purposes of this definition,
|
23
|
+
"control" means (i) the power, direct or indirect, to cause the
|
24
|
+
direction or management of such entity, whether by contract or
|
25
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
26
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
27
|
+
|
28
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
29
|
+
exercising permissions granted by this License.
|
30
|
+
|
31
|
+
"Source" form shall mean the preferred form for making modifications,
|
32
|
+
including but not limited to software source code, documentation
|
33
|
+
source, and configuration files.
|
34
|
+
|
35
|
+
"Object" form shall mean any form resulting from mechanical
|
36
|
+
transformation or translation of a Source form, including but
|
37
|
+
not limited to compiled object code, generated documentation,
|
38
|
+
and conversions to other media types.
|
39
|
+
|
40
|
+
"Work" shall mean the work of authorship, whether in Source or
|
41
|
+
Object form, made available under the License, as indicated by a
|
42
|
+
copyright notice that is included in or attached to the work
|
43
|
+
(an example is provided in the Appendix below).
|
44
|
+
|
45
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
46
|
+
form, that is based on (or derived from) the Work and for which the
|
47
|
+
editorial revisions, annotations, elaborations, or other modifications
|
48
|
+
represent, as a whole, an original work of authorship. For the purposes
|
49
|
+
of this License, Derivative Works shall not include works that remain
|
50
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
51
|
+
the Work and Derivative Works thereof.
|
52
|
+
|
53
|
+
"Contribution" shall mean any work of authorship, including
|
54
|
+
the original version of the Work and any modifications or additions
|
55
|
+
to that Work or Derivative Works thereof, that is intentionally
|
56
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
57
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
58
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
59
|
+
means any form of electronic, verbal, or written communication sent
|
60
|
+
to the Licensor or its representatives, including but not limited to
|
61
|
+
communication on electronic mailing lists, source code control systems,
|
62
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
63
|
+
Licensor for the purpose of discussing and improving the Work, but
|
64
|
+
excluding communication that is conspicuously marked or otherwise
|
65
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
66
|
+
|
67
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
68
|
+
on behalf of whom a Contribution has been received by Licensor and
|
69
|
+
subsequently incorporated within the Work.
|
70
|
+
|
71
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
72
|
+
this License, each Contributor hereby grants to You a perpetual,
|
73
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
74
|
+
copyright license to reproduce, prepare Derivative Works of,
|
75
|
+
publicly display, publicly perform, sublicense, and distribute the
|
76
|
+
Work and such Derivative Works in Source or Object form.
|
77
|
+
|
78
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
79
|
+
this License, each Contributor hereby grants to You a perpetual,
|
80
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
81
|
+
(except as stated in this section) patent license to make, have made,
|
82
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
83
|
+
where such license applies only to those patent claims licensable
|
84
|
+
by such Contributor that are necessarily infringed by their
|
85
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
86
|
+
with the Work to which such Contribution(s) was submitted. If You
|
87
|
+
institute patent litigation against any entity (including a
|
88
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
89
|
+
or a Contribution incorporated within the Work constitutes direct
|
90
|
+
or contributory patent infringement, then any patent licenses
|
91
|
+
granted to You under this License for that Work shall terminate
|
92
|
+
as of the date such litigation is filed.
|
93
|
+
|
94
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
95
|
+
Work or Derivative Works thereof in any medium, with or without
|
96
|
+
modifications, and in Source or Object form, provided that You
|
97
|
+
meet the following conditions:
|
98
|
+
|
99
|
+
(a) You must give any other recipients of the Work or
|
100
|
+
Derivative Works a copy of this License; and
|
101
|
+
|
102
|
+
(b) You must cause any modified files to carry prominent notices
|
103
|
+
stating that You changed the files; and
|
104
|
+
|
105
|
+
(c) You must retain, in the Source form of any Derivative Works
|
106
|
+
that You distribute, all copyright, patent, trademark, and
|
107
|
+
attribution notices from the Source form of the Work,
|
108
|
+
excluding those notices that do not pertain to any part of
|
109
|
+
the Derivative Works; and
|
110
|
+
|
111
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
112
|
+
distribution, then any Derivative Works that You distribute must
|
113
|
+
include a readable copy of the attribution notices contained
|
114
|
+
within such NOTICE file, excluding those notices that do not
|
115
|
+
pertain to any part of the Derivative Works, in at least one
|
116
|
+
of the following places: within a NOTICE text file distributed
|
117
|
+
as part of the Derivative Works; within the Source form or
|
118
|
+
documentation, if provided along with the Derivative Works; or,
|
119
|
+
within a display generated by the Derivative Works, if and
|
120
|
+
wherever such third-party notices normally appear. The contents
|
121
|
+
of the NOTICE file are for informational purposes only and
|
122
|
+
do not modify the License. You may add Your own attribution
|
123
|
+
notices within Derivative Works that You distribute, alongside
|
124
|
+
or as an addendum to the NOTICE text from the Work, provided
|
125
|
+
that such additional attribution notices cannot be construed
|
126
|
+
as modifying the License.
|
127
|
+
|
128
|
+
You may add Your own copyright statement to Your modifications and
|
129
|
+
may provide additional or different license terms and conditions
|
130
|
+
for use, reproduction, or distribution of Your modifications, or
|
131
|
+
for any such Derivative Works as a whole, provided Your use,
|
132
|
+
reproduction, and distribution of the Work otherwise complies with
|
133
|
+
the conditions stated in this License.
|
134
|
+
|
135
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
136
|
+
any Contribution intentionally submitted for inclusion in the Work
|
137
|
+
by You to the Licensor shall be under the terms and conditions of
|
138
|
+
this License, without any additional terms or conditions.
|
139
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
140
|
+
the terms of any separate license agreement you may have executed
|
141
|
+
with Licensor regarding such Contributions.
|
142
|
+
|
143
|
+
6. Trademarks. This License does not grant permission to use the trade
|
144
|
+
names, trademarks, service marks, or product names of the Licensor,
|
145
|
+
except as required for reasonable and customary use in describing the
|
146
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
147
|
+
|
148
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
149
|
+
agreed to in writing, Licensor provides the Work (and each
|
150
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
151
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
152
|
+
implied, including, without limitation, any warranties or conditions
|
153
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
154
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
155
|
+
appropriateness of using or redistributing the Work and assume any
|
156
|
+
risks associated with Your exercise of permissions under this License.
|
157
|
+
|
158
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
159
|
+
whether in tort (including negligence), contract, or otherwise,
|
160
|
+
unless required by applicable law (such as deliberate and grossly
|
161
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
162
|
+
liable to You for damages, including any direct, indirect, special,
|
163
|
+
incidental, or consequential damages of any character arising as a
|
164
|
+
result of this License or out of the use or inability to use the
|
165
|
+
Work (including but not limited to damages for loss of goodwill,
|
166
|
+
work stoppage, computer failure or malfunction, or any and all
|
167
|
+
other commercial damages or losses), even if such Contributor
|
168
|
+
has been advised of the possibility of such damages.
|
169
|
+
|
170
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
171
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
172
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
173
|
+
or other liability obligations and/or rights consistent with this
|
174
|
+
License. However, in accepting such obligations, You may act only
|
175
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
176
|
+
of any other Contributor, and only if You agree to indemnify,
|
177
|
+
defend, and hold each Contributor harmless for any liability
|
178
|
+
incurred by, or claims asserted against, such Contributor by reason
|
179
|
+
of your accepting any such warranty or additional liability.
|
180
|
+
|
181
|
+
END OF TERMS AND CONDITIONS
|
182
|
+
|
183
|
+
APPENDIX: How to apply the Apache License to your work.
|
184
|
+
|
185
|
+
To apply the Apache License to your work, attach the following
|
186
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
187
|
+
replaced with your own identifying information. (Don't include
|
188
|
+
the brackets!) The text should be enclosed in the appropriate
|
189
|
+
comment syntax for the file format. We also recommend that a
|
190
|
+
file or class name and description of purpose be included on the
|
191
|
+
same "printed page" as the copyright notice for easier
|
192
|
+
identification within third-party archives.
|
193
|
+
|
194
|
+
Copyright 2025 Alibaba Group
|
195
|
+
|
196
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
197
|
+
you may not use this file except in compliance with the License.
|
198
|
+
You may obtain a copy of the License at
|
199
|
+
|
200
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
201
|
+
|
202
|
+
Unless required by applicable law or agreed to in writing, software
|
203
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
204
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
205
|
+
See the License for the specific language governing permissions and
|
206
|
+
limitations under the License.
|
207
|
+
|
208
|
+
Keywords: llm,memory,experience,memoryscope,ai,mcp,http
|
209
|
+
Classifier: Programming Language :: Python :: 3
|
210
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
211
|
+
Classifier: Operating System :: OS Independent
|
212
|
+
Requires-Python: >=3.11
|
213
|
+
Description-Content-Type: text/markdown
|
214
|
+
License-File: LICENSE
|
215
|
+
Requires-Dist: flowllm>=0.1.3
|
216
|
+
Dynamic: license-file
|
217
|
+
|
218
|
+
<p align="center">
|
219
|
+
<img src="docs/figure/reme_logo.png" alt="ReMe Logo" width="50%">
|
220
|
+
</p>
|
221
|
+
|
222
|
+
<p align="center">
|
223
|
+
<a href="https://pypi.org/project/reme-ai/"><img src="https://img.shields.io/badge/python-3.12+-blue" alt="Python 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>
|
225
|
+
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-black" alt="License"></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>
|
227
|
+
</p>
|
228
|
+
|
229
|
+
<p align="center">
|
230
|
+
<strong>ReMe (formerly MemoryScope): Memory Management Framework for Agents</strong><br>
|
231
|
+
<em>Remember Me, Refine Me.</em>
|
232
|
+
</p>
|
233
|
+
|
234
|
+
---
|
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.
|
237
|
+
|
238
|
+
```
|
239
|
+
Personal Memory + Task Memory = Agent Memory
|
240
|
+
```
|
241
|
+
|
242
|
+
Personal memory helps "**understand user preferences**", while task memory helps agents "**perform better**".
|
243
|
+
|
244
|
+
---
|
245
|
+
|
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.
|
260
|
+
|
261
|
+
---
|
262
|
+
|
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**
|
272
|
+
|
273
|
+
Procedural knowledge reused across agents
|
274
|
+
|
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
|
279
|
+
|
280
|
+
Learn more about how to use task memory from [task memory](docs/task_memory/task_memory.md)
|
281
|
+
|
282
|
+
#### 👤 **Personal Memory**
|
283
|
+
|
284
|
+
Contextualized memory for specific users
|
285
|
+
|
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
|
290
|
+
|
291
|
+
Learn more about how to use personal memory from [personal memory](docs/personal_memory/personal_memory.md)
|
292
|
+
|
293
|
+
---
|
294
|
+
|
295
|
+
## 🛠️ Installation
|
296
|
+
|
297
|
+
### Install from PyPI (Recommended)
|
298
|
+
|
299
|
+
```bash
|
300
|
+
pip install reme-ai
|
301
|
+
```
|
302
|
+
|
303
|
+
### Install from Source
|
304
|
+
|
305
|
+
```bash
|
306
|
+
git clone https://github.com/modelscope/ReMe.git
|
307
|
+
cd ReMe
|
308
|
+
pip install .
|
309
|
+
```
|
310
|
+
|
311
|
+
### Environment Configuration
|
312
|
+
|
313
|
+
Copy `example.env` to .env and modify the corresponding parameters:
|
314
|
+
|
315
|
+
```bash
|
316
|
+
# Required: LLM API Configuration
|
317
|
+
FLOW_LLM_API_KEY=sk-xxxx
|
318
|
+
FLOW_LLM_BASE_URL=https://xxxx/v1
|
319
|
+
|
320
|
+
# Required: Embedding Model Configuration
|
321
|
+
FLOW_EMBEDDING_API_KEY=sk-xxxx
|
322
|
+
FLOW_EMBEDDING_BASE_URL=https://xxxx/v1
|
323
|
+
```
|
324
|
+
|
325
|
+
---
|
326
|
+
|
327
|
+
## 🚀 Quick Start
|
328
|
+
|
329
|
+
### HTTP Service Startup
|
330
|
+
|
331
|
+
```bash
|
332
|
+
reme \
|
333
|
+
backend=http \
|
334
|
+
http.port=8002 \
|
335
|
+
llm.default.model_name=qwen3-30b-a3b-thinking-2507 \
|
336
|
+
embedding_model.default.model_name=text-embedding-v4 \
|
337
|
+
vector_store.default.backend=local
|
338
|
+
```
|
339
|
+
|
340
|
+
### MCP Server Support
|
341
|
+
|
342
|
+
```bash
|
343
|
+
reme \
|
344
|
+
backend=mcp \
|
345
|
+
mcp.transport=stdio \
|
346
|
+
llm.default.model_name=qwen3-30b-a3b-thinking-2507 \
|
347
|
+
embedding_model.default.model_name=text-embedding-v4 \
|
348
|
+
vector_store.default.backend=local
|
349
|
+
```
|
350
|
+
|
351
|
+
### Core API Usage
|
352
|
+
|
353
|
+
#### Task Memory Management
|
354
|
+
|
355
|
+
```python
|
356
|
+
import requests
|
357
|
+
|
358
|
+
# Experience Summarizer: Learn from execution trajectories
|
359
|
+
response = requests.post("http://localhost:8002/summary_task_memory", json={
|
360
|
+
"workspace_id": "task_workspace",
|
361
|
+
"trajectories": [
|
362
|
+
{"messages": [{"role": "user", "content": "Help me create a project plan"}], "score": 1.0}
|
363
|
+
]
|
364
|
+
})
|
365
|
+
|
366
|
+
# Retriever: Get relevant memories
|
367
|
+
response = requests.post("http://localhost:8002/retrieve_task_memory", json={
|
368
|
+
"workspace_id": "task_workspace",
|
369
|
+
"query": "How to efficiently manage project progress?",
|
370
|
+
"top_k": 1
|
371
|
+
})
|
372
|
+
```
|
373
|
+
|
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
|
+
|
440
|
+
```python
|
441
|
+
# Memory Integration: Learn from user interactions
|
442
|
+
response = requests.post("http://localhost:8002/summary_personal_memory", json={
|
443
|
+
"workspace_id": "task_workspace",
|
444
|
+
"trajectories": [
|
445
|
+
{"messages":
|
446
|
+
[
|
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"}
|
450
|
+
]
|
451
|
+
}
|
452
|
+
]
|
453
|
+
})
|
454
|
+
|
455
|
+
# Memory Retrieval: Get personal memory fragments
|
456
|
+
response = requests.post("http://localhost:8002/retrieve_personal_memory", json={
|
457
|
+
"workspace_id": "task_workspace",
|
458
|
+
"query": "What are the user's work habits?",
|
459
|
+
"top_k": 5
|
460
|
+
})
|
461
|
+
```
|
462
|
+
|
463
|
+
<details>
|
464
|
+
<summary>curl version</summary>
|
465
|
+
|
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
|
+
}'
|
479
|
+
|
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
|
+
```
|
489
|
+
|
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
|
+
```
|
530
|
+
|
531
|
+
</details>
|
532
|
+
|
533
|
+
---
|
534
|
+
|
535
|
+
## 📦 Ready-to-Use Libraries
|
536
|
+
|
537
|
+
ReMe provides pre-built memory libraries that agents can immediately use with verified best practices:
|
538
|
+
|
539
|
+
### Available Libraries
|
540
|
+
|
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
|
544
|
+
|
545
|
+
### Quick Usage
|
546
|
+
|
547
|
+
```python
|
548
|
+
# Load pre-built memories
|
549
|
+
response = requests.post("http://localhost:8002/vector_store", json={
|
550
|
+
"workspace_id": "appworld",
|
551
|
+
"action": "load",
|
552
|
+
"path": "./library/"
|
553
|
+
})
|
554
|
+
|
555
|
+
# Query relevant memories
|
556
|
+
response = requests.post("http://localhost:8002/retrieve_task_memory", json={
|
557
|
+
"workspace_id": "appworld",
|
558
|
+
"query": "How to navigate to settings and update user profile?",
|
559
|
+
"top_k": 1
|
560
|
+
})
|
561
|
+
```
|
562
|
+
|
563
|
+
## 🧪 Experiments
|
564
|
+
|
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
|
611
|
+
|
612
|
+
---
|
613
|
+
|
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
|
623
|
+
|
624
|
+
### Documentation Improvements
|
625
|
+
|
626
|
+
- Usage examples and tutorials
|
627
|
+
- Best practice guides
|
628
|
+
|
629
|
+
|
630
|
+
---
|
631
|
+
|
632
|
+
## 📄 Citation
|
633
|
+
|
634
|
+
```bibtex
|
635
|
+
@software{ReMe2025,
|
636
|
+
title = {ReMe: Memory Framework for AI Agent},
|
637
|
+
author = {Li Yu, Jiaji Deng, Zouying Cao},
|
638
|
+
url = {https://github.com/modelscope/ReMe},
|
639
|
+
year = {2025}
|
640
|
+
}
|
641
|
+
```
|
642
|
+
|
643
|
+
---
|
644
|
+
|
645
|
+
## ⚖️ License
|
646
|
+
|
647
|
+
This project is licensed under the Apache License 2.0 - see the [LICENSE](./LICENSE) file for details.
|
648
|
+
|
649
|
+
---
|