reme-ai 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

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 (28) hide show
  1. reme_ai/__init__.py +1 -1
  2. reme_ai/config/default.yaml +147 -0
  3. reme_ai/retrieve/personal/extract_time_prompt.yaml +135 -0
  4. reme_ai/retrieve/personal/print_memory_prompt.yaml +22 -0
  5. reme_ai/retrieve/task/build_query_prompt.yaml +6 -0
  6. reme_ai/retrieve/task/rerank_memory_prompt.yaml +25 -0
  7. reme_ai/retrieve/task/rewrite_memory_prompt.yaml +34 -0
  8. reme_ai/summary/personal/contra_repeat_prompt.yaml +127 -0
  9. reme_ai/summary/personal/get_observation_prompt.yaml +163 -0
  10. reme_ai/summary/personal/get_observation_with_time_prompt.yaml +158 -0
  11. reme_ai/summary/personal/get_reflection_subject_prompt.yaml +179 -0
  12. reme_ai/summary/personal/info_filter_op.py +7 -2
  13. reme_ai/summary/personal/info_filter_prompt.yaml +172 -0
  14. reme_ai/summary/personal/long_contra_repeat_prompt.yaml +120 -0
  15. reme_ai/summary/personal/update_insight_prompt.yaml +149 -0
  16. reme_ai/summary/task/comparative_extraction_prompt.yaml +79 -0
  17. reme_ai/summary/task/failure_extraction_prompt.yaml +42 -0
  18. reme_ai/summary/task/memory_validation_prompt.yaml +29 -0
  19. reme_ai/summary/task/simple_comparative_summary_prompt.yaml +32 -0
  20. reme_ai/summary/task/simple_summary_prompt.yaml +31 -0
  21. reme_ai/summary/task/success_extraction_prompt.yaml +42 -0
  22. reme_ai/summary/task/trajectory_segmentation_prompt.yaml +31 -0
  23. {reme_ai-0.1.0.dist-info → reme_ai-0.1.1.dist-info}/METADATA +1 -4
  24. {reme_ai-0.1.0.dist-info → reme_ai-0.1.1.dist-info}/RECORD +28 -8
  25. {reme_ai-0.1.0.dist-info → reme_ai-0.1.1.dist-info}/WHEEL +0 -0
  26. {reme_ai-0.1.0.dist-info → reme_ai-0.1.1.dist-info}/entry_points.txt +0 -0
  27. {reme_ai-0.1.0.dist-info → reme_ai-0.1.1.dist-info}/licenses/LICENSE +0 -0
  28. {reme_ai-0.1.0.dist-info → reme_ai-0.1.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,31 @@
1
+ summary_prompt: |
2
+ # Execution Process
3
+ {execution_process}
4
+
5
+ # Result
6
+ {execution_result}
7
+
8
+ # Task
9
+ Reflect on what went well and what did not go well in the execution path based on the user's question.
10
+ The summarized memory should be generalizable, providing assistance in solving similar types of problems in the future.
11
+ They can include good suggestions or highlight areas to avoid and potential pitfalls.
12
+ The type of memory can be plain text or a piece of code that solves a specific problem.
13
+ If there are no memory to summarize, output an empty list [].
14
+ For each memory, first state the scenario when it is applicable (when to use), then provide the memory itself, with a maximum of two memories summarized.
15
+
16
+ # Output Format
17
+ {summary_example}
18
+
19
+ summary_example: |
20
+ ```json
21
+ [
22
+ {
23
+ "when_to_use": "...",
24
+ "memory": "..."
25
+ },
26
+ {
27
+ "when_to_use": "...",
28
+ "memory": "..."
29
+ }
30
+ ]
31
+ ```
@@ -0,0 +1,42 @@
1
+ success_step_task_memory_prompt: |
2
+ You are an expert AI analyst reviewing successful step sequences from an AI agent execution.
3
+
4
+ Your task is to extract reusable, actionable step-level task memories that can guide future agent executions.
5
+ Focus on identifying specific patterns, techniques, and decision points that contributed to success.
6
+
7
+ ANALYSIS FRAMEWORK:
8
+ ● STEP PATTERN ANALYSIS: Identify the specific sequence of actions that led to success
9
+ ● DECISION POINTS: Highlight critical decisions made during these steps
10
+ ● TECHNIQUE EFFECTIVENESS: Analyze why specific approaches worked well
11
+ ● REUSABILITY: Extract patterns that can be applied to similar scenarios
12
+
13
+ EXTRACTION PRINCIPLES:
14
+ ● Focus on TRANSFERABLE TECHNIQUES and decision frameworks
15
+ ● Frame insights as actionable guidelines and best practices
16
+
17
+ # Original Query
18
+ {query}
19
+
20
+ # Step Sequence Analysis
21
+ {step_sequence}
22
+
23
+ # Context Information
24
+ {context}
25
+
26
+ # Outcome
27
+ This step sequence was part of a {outcome} trajectory.
28
+
29
+ OUTPUT FORMAT:
30
+ Generate 1-3 step-level success insights as JSON objects:
31
+ ```json
32
+ [
33
+ {{
34
+ "when_to_use": "Specific conditions when this step pattern should be applied",
35
+ "experience": "Detailed description of the successful step pattern and why it works",
36
+ "tags": ["relevant", "keywords", "for", "categorization"],
37
+ "confidence": 0.8,
38
+ "step_type": "reasoning|action|observation|decision",
39
+ "tools_used": ["list", "of", "tools"]
40
+ }}
41
+ ]
42
+ ```
@@ -0,0 +1,31 @@
1
+ step_segmentation_prompt: |
2
+ You are an expert AI analyst tasked with segmenting a trajectory into meaningful step sequences.
3
+
4
+ Your task is to identify natural breakpoints in the execution where one logical unit of work ends and another begins.
5
+ Consider factors like: task completion, context switches, tool changes, reasoning phases, and logical groupings.
6
+
7
+ SEGMENTATION CRITERIA:
8
+ ● LOGICAL COMPLETION: Steps that complete a specific sub-task or reasoning phase
9
+ ● CONTEXT SWITCHES: Points where the agent shifts focus or approach
10
+ ● TOOL BOUNDARIES: Natural breaks around tool usage patterns
11
+ ● REASONING PHASES: Distinct phases of analysis, planning, or execution
12
+
13
+ # Original Query
14
+ {query}
15
+
16
+ # Full Trajectory (Total steps: {total_steps})
17
+ {trajectory_content}
18
+
19
+ OUTPUT FORMAT:
20
+ Provide segmentation points as a JSON array of step indices where splits should occur:
21
+ ```json
22
+ {{
23
+ "segment_points": [3, 7, 12, 18],
24
+ "reasoning": "Brief explanation of segmentation logic"
25
+ }}
26
+ ```
27
+
28
+ Note: Segment points indicate the END of each segment. For example, [3, 7] means:
29
+ - Segment 1: steps 0-3
30
+ - Segment 2: steps 4-7
31
+ - Segment 3: steps 8-end
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reme_ai
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Remember me of memory and experience
5
5
  Author-email: reme_ai_team <reme_ai_team@alibaba-inc.com>
6
6
  License: Apache License
@@ -212,7 +212,4 @@ Requires-Python: >=3.12
212
212
  Description-Content-Type: text/markdown
213
213
  License-File: LICENSE
214
214
  Requires-Dist: flowllm>=0.1.3
215
- Requires-Dist: loguru
216
- Requires-Dist: pydantic
217
- Requires-Dist: numpy
218
215
  Dynamic: license-file
@@ -1,7 +1,8 @@
1
- reme_ai/__init__.py,sha256=SP6VhwCND1E5DNaNfDZuMruUU2SPM43RPC5wz8RT33E,139
1
+ reme_ai/__init__.py,sha256=H9V_wYIiKCRV7B_79H5mKV19X6TE4i4fnFZzuyZ9vzY,139
2
2
  reme_ai/app.py,sha256=h73ttERKpId5O80wKiAvDmYKjnGqbMAq-vc1aHkcXAU,314
3
3
  reme_ai/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  reme_ai/config/config_parser.py,sha256=gk9bsMNnAlLLjChdalHWHgpOazyvZh5bItTUZcIGqbU,189
5
+ reme_ai/config/default.yaml,sha256=g9t4Obs_jCdLkqEYUhsguhuiQXtN4_j0DpJhnY7PWMw,5300
5
6
  reme_ai/constants/__init__.py,sha256=HdNweT3fTmdsCfoyTVKpBIPF9EELepLVNCrpKpJymY4,128
6
7
  reme_ai/constants/common_constants.py,sha256=9xj995uCL-upn3qys1Manl6N4dQnOctuSqjqMTebers,1083
7
8
  reme_ai/constants/language_constants.py,sha256=7RehdVTVVt4QpeXobeRn7nuuUv6j4APsGlDe55VHovs,4764
@@ -12,40 +13,59 @@ reme_ai/react/simple_react_op.py,sha256=kJWR7ZC2E_SxuqFIinULcaSnZis2AXEWW2PYROYS
12
13
  reme_ai/retrieve/__init__.py,sha256=K3qulFpRGZU_UsyYjIouR1F2CXwDBf9NkGiqYmIU2hQ,42
13
14
  reme_ai/retrieve/personal/__init__.py,sha256=v5rpUQgBuMBMAodUzXPaRHg27ckGz82Vq5PXFSwHbks,462
14
15
  reme_ai/retrieve/personal/extract_time_op.py,sha256=HDAv2gomUh8ZswWD8Gk-nfsAteh2AvYX3m8IFfGDL9U,4136
16
+ reme_ai/retrieve/personal/extract_time_prompt.yaml,sha256=gO1RM4yFIDE5zr7EM6B_R-5a7mrtgqpeMRnKtzkeaOQ,5247
15
17
  reme_ai/retrieve/personal/fuse_rerank_op.py,sha256=OEEKXojpKkpWOV_nwDC4xbozmVlN-o3rH4W4fTEJkVI,7589
16
18
  reme_ai/retrieve/personal/print_memory_op.py,sha256=ih2tOH6L48MP83Rez8F3iIyu7JAqvn0k90g86yf9Ioo,4347
19
+ reme_ai/retrieve/personal/print_memory_prompt.yaml,sha256=fJ1DVLwu7crKLnNy9tsb-BYY56Y-kLRkuqthuEakgmM,487
17
20
  reme_ai/retrieve/personal/read_message_op.py,sha256=RZjXXAijogas9mL4QJeXavriDDDzTkAWQwDWQ6CLlL8,1712
18
21
  reme_ai/retrieve/personal/retrieve_memory_op.py,sha256=cZl1FCZHFPg-6F-PRWXTYR36Uj7cOZuIvQ_4c6HQXFM,443
19
22
  reme_ai/retrieve/personal/semantic_rank_op.py,sha256=03gwn4cXwAA4K_XnxAYvE0Yhapct3n9_QgS0L4Yx0Qk,6583
20
23
  reme_ai/retrieve/personal/set_query_op.py,sha256=LcHVzbj9SkVJ7WbSzKFgY6WaEIlTPrEU13rB3I9Lp6w,1310
21
24
  reme_ai/retrieve/task/__init__.py,sha256=jTB7b3WpDbU3cyloqPD96TAdZkCIRs5enjSXybebbII,176
22
25
  reme_ai/retrieve/task/build_query_op.py,sha256=NkUfyt2CZLJcMs1ZgIMM2kB-igE8F0EFTmGExvxiyDo,1473
26
+ reme_ai/retrieve/task/build_query_prompt.yaml,sha256=NQTvGe6u9w5k4J_tMo-AeXhRD4h7_urrl3NFhJlc8_8,323
23
27
  reme_ai/retrieve/task/merge_memory_op.py,sha256=0O4sYrhqiOgVjgcGeRFPG_XWzm8AORIK5m4j-tESmqk,901
24
28
  reme_ai/retrieve/task/rerank_memory_op.py,sha256=FIQ2g3qbjA1YqfPmZsFc7F7i0BQBi6wPNVGf1MFcgjQ,5536
29
+ reme_ai/retrieve/task/rerank_memory_prompt.yaml,sha256=_YuJCGa6N5gJ8LVcbeC8y6AFJHGkWuAyorB8NkUla34,965
25
30
  reme_ai/retrieve/task/rewrite_memory_op.py,sha256=KPfZ5SAxHRfi3cQlvxz_cGI28euG2efGeHoAMCzzSjg,5476
31
+ reme_ai/retrieve/task/rewrite_memory_prompt.yaml,sha256=JY4gmTplmfxxZzDfdaUDyJoXXqWHXpc7Z-4_ry_Zy74,1594
26
32
  reme_ai/schema/__init__.py,sha256=tbBjMfV_ojRr2yybA-XSPzN71A6K9HXZ8Gaw7I-2hBM,69
27
33
  reme_ai/schema/memory.py,sha256=ur1ldmrrm3YZermeb6zhV9LgrBoUEJ29Ppz6J2Q8yhM,5483
28
34
  reme_ai/summary/__init__.py,sha256=K3qulFpRGZU_UsyYjIouR1F2CXwDBf9NkGiqYmIU2hQ,42
29
35
  reme_ai/summary/personal/__init__.py,sha256=z2taU9ejTWvZaAJ6Mr0jKKRh4fcBdZVxpiFWreTDhTg,417
30
36
  reme_ai/summary/personal/contra_repeat_op.py,sha256=nRt5HlG1Jn7HZ20IecrwkSWFcPFxplkteoYtD40at8E,6278
37
+ reme_ai/summary/personal/contra_repeat_prompt.yaml,sha256=u5sp8MN944pU0HEeTKQmehdVlnqLXsIA7rAAh-bMJTw,7205
31
38
  reme_ai/summary/personal/get_observation_op.py,sha256=dA4rNU4Fpz8RcwgMoZ6wDADelS8Q3x9L9MUw8ElhcvI,6400
39
+ reme_ai/summary/personal/get_observation_prompt.yaml,sha256=PK5iBDPMt6MqgsQ9Mj6YKp5Iq1PCA-MOYOp-rEFd-b8,15032
32
40
  reme_ai/summary/personal/get_observation_with_time_op.py,sha256=jd2lK1wKCQI-3_kd_PWqwqAPoHmKtC0tkbsov-tGLew,7874
41
+ reme_ai/summary/personal/get_observation_with_time_prompt.yaml,sha256=lRIlkU7BmgLzkghLLX-hx7hxibDTgsqa-IuIUIwyeMs,16389
33
42
  reme_ai/summary/personal/get_reflection_subject_op.py,sha256=BaAWczh6NRHCj52-w3VrKNQqzeIKOd9jLcrjTV6z3gM,7681
34
- reme_ai/summary/personal/info_filter_op.py,sha256=3XPZJUWb91TShcAWgDLa3dyXW3yRszwnc8-3-6N5aGM,7658
43
+ reme_ai/summary/personal/get_reflection_subject_prompt.yaml,sha256=YYSCsgZhD7H7zkzRWrj6zzxOlprfuB1setUokjgvfK0,11139
44
+ reme_ai/summary/personal/info_filter_op.py,sha256=mYHmY3nTqosMUM9AsSUQROPXKrTG7Jx9XL3IvEtav28,7866
45
+ reme_ai/summary/personal/info_filter_prompt.yaml,sha256=rgVLz_ptumi6lLYgLKRmTuap8vA5jQsfeFGpPiMpjMo,11192
35
46
  reme_ai/summary/personal/load_today_memory_op.py,sha256=NTujZF-x1zDfiMorZOxOBzYNZu4YteSIyjdzYRhwi9w,4080
36
47
  reme_ai/summary/personal/long_contra_repeat_op.py,sha256=WGoWPl4rJDpOsw00RHf3Isc4BtdG5s8qAct1IscMovw,9058
48
+ reme_ai/summary/personal/long_contra_repeat_prompt.yaml,sha256=6q3Y4xZx3liZwXLcJsOgeCIQZzAE2PwqVNQCFMNAWsI,7516
37
49
  reme_ai/summary/personal/update_insight_op.py,sha256=_OY6s9rXBpHxdy_kB8gh2howoIyLkNRuYf9SNO176xA,10994
50
+ reme_ai/summary/personal/update_insight_prompt.yaml,sha256=02EPEC5vQGTEYOfHeq29GUEhlWxdLAcMnaj6jOgeI8c,10295
38
51
  reme_ai/summary/task/__init__.py,sha256=Giqlc9LIZr89uPCwhvUYPkHE0o8lBnZ-4DLAzrpBrEQ,583
39
52
  reme_ai/summary/task/comparative_extraction_op.py,sha256=o3Zb-hsIaEioSP7TtLcXGCEXxktzY6GqgY2qhnzUsz0,10655
53
+ reme_ai/summary/task/comparative_extraction_prompt.yaml,sha256=EgsveH1fHcXle5sHDqyxZ_KxTfTUn2IGbkZ0KjZRl1I,3331
40
54
  reme_ai/summary/task/failure_extraction_op.py,sha256=_BNoe-Am9GxyBXW49JQjZnPSEJ1wPKCanAot2hANE-Y,3042
55
+ reme_ai/summary/task/failure_extraction_prompt.yaml,sha256=kWz55BRxtEd_CjoaKWliCdYR_pzNCZwBETA0Ajdwggk,1534
41
56
  reme_ai/summary/task/memory_deduplication_op.py,sha256=_HRxafjH_JbsgGIIPxanb-yxHjsGOOnXSJlzubOdYGE,6838
42
57
  reme_ai/summary/task/memory_validation_op.py,sha256=fZBIN9_n4UjYzw_E4copmIwctgFfxUwqtFiaspTdDFY,4362
58
+ reme_ai/summary/task/memory_validation_prompt.yaml,sha256=CwqT76ktjnkCXcZFEe0XtvJPkhZTpt32_N--A0gH3k0,1230
43
59
  reme_ai/summary/task/pdf_preprocess_op_wrapper.py,sha256=RcS-qkjJpOPeFQTcqyX2h2aH1QURVs8silD60eF0NlE,1841
44
60
  reme_ai/summary/task/simple_comparative_summary_op.py,sha256=8_4W6Apjt19LJWp0kuvyHi7La1rAduJ5-oiCsnr0YoU,3436
61
+ reme_ai/summary/task/simple_comparative_summary_prompt.yaml,sha256=FGGj-jE8SvgEDEJAiq33ptB_-pI2qmBulsLDQyy8_bM,1140
45
62
  reme_ai/summary/task/simple_summary_op.py,sha256=O070MuSZlsJQKj1jYkIqsi5RES_kORp9o7mnwbFkTM8,2975
63
+ reme_ai/summary/task/simple_summary_prompt.yaml,sha256=o0JbPBtGqKJ6_GIDhI_wGdBOSOy74bpaehLAKqtBYco,943
46
64
  reme_ai/summary/task/success_extraction_op.py,sha256=H-WxIadbAFg7FueC31VoxY-Ydc99F4TXfdT-3RGWRSw,3037
65
+ reme_ai/summary/task/success_extraction_prompt.yaml,sha256=rr_5sm9j2r_Ea5JgBBPG-yCnFMmCdTi391rqWovqraw,1527
47
66
  reme_ai/summary/task/trajectory_preprocess_op.py,sha256=fUYNZLTv6hfzDpYVgHZtayLuWAYJKmk9aKyLZn5PMBM,2886
48
67
  reme_ai/summary/task/trajectory_segmentation_op.py,sha256=QpYsvG5UAKcetDpWTZHqmU-9PcXXcB8nid1r_kUd6sU,4626
68
+ reme_ai/summary/task/trajectory_segmentation_prompt.yaml,sha256=8E5nDQn9x7DHC6P1dsF3l_bd8UITla9AyfmSLoyFLpM,1193
49
69
  reme_ai/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
50
70
  reme_ai/utils/datetime_handler.py,sha256=ul3igS4tKIqzLykhHBcum4bapjTqd4hhIdi6CPOWQZk,14453
51
71
  reme_ai/utils/miner_u_pdf_processor.py,sha256=wYcKmNxFNwOMmDyO790G3uqBsFtZgHy65VZE2pM9A10,28956
@@ -57,9 +77,9 @@ reme_ai/vector_store/update_memory_freq_op.py,sha256=LTkIp9oEieFt-zmlJ_QxH2dBaOr
57
77
  reme_ai/vector_store/update_memory_utility_op.py,sha256=d49os4sG_pd7bXwlGSCGytlbcguU5ZFgAmJrxHDJapA,1013
58
78
  reme_ai/vector_store/update_vector_store_op.py,sha256=nSw_i0bOfhzLbM200tyqygiETPqKQe4ZT3IguSwKYh0,1297
59
79
  reme_ai/vector_store/vector_store_action_op.py,sha256=wiWNHAG6XtrEUCXt76B2KZvNS_i0P8BF53hLrZR0IbQ,2231
60
- reme_ai-0.1.0.dist-info/licenses/LICENSE,sha256=zFTWearO11HAlvEgtmY1XBBtk5TSj5P23zU5c_bNfb4,11343
61
- reme_ai-0.1.0.dist-info/METADATA,sha256=QJLuVSQ_RDJC6xy5fNB7kz43r2sIkUgVb2T8KbfLu34,13479
62
- reme_ai-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
63
- reme_ai-0.1.0.dist-info/entry_points.txt,sha256=6SP3ncXOMyKotdT4LHWPeaXo3-Sv-1qmK7OhVw76Xhw,42
64
- reme_ai-0.1.0.dist-info/top_level.txt,sha256=3ca2UBk97aSfPmGdg8LlVqyeLikb5qEnBEbfGgtzao0,8
65
- reme_ai-0.1.0.dist-info/RECORD,,
80
+ reme_ai-0.1.1.dist-info/licenses/LICENSE,sha256=zFTWearO11HAlvEgtmY1XBBtk5TSj5P23zU5c_bNfb4,11343
81
+ reme_ai-0.1.1.dist-info/METADATA,sha256=o7T52S-Qg81K_TYOxyS3_DXj2XuzwRfs20Dc8n9-FnM,13412
82
+ reme_ai-0.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
83
+ reme_ai-0.1.1.dist-info/entry_points.txt,sha256=6SP3ncXOMyKotdT4LHWPeaXo3-Sv-1qmK7OhVw76Xhw,42
84
+ reme_ai-0.1.1.dist-info/top_level.txt,sha256=3ca2UBk97aSfPmGdg8LlVqyeLikb5qEnBEbfGgtzao0,8
85
+ reme_ai-0.1.1.dist-info/RECORD,,