reme-ai 0.1.5__py3-none-any.whl → 0.1.7__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.
reme_ai/__init__.py CHANGED
@@ -3,4 +3,4 @@ from reme_ai import retrieve
3
3
  from reme_ai import summary
4
4
  from reme_ai import vector_store
5
5
 
6
- __version__ = "0.1.5"
6
+ __version__ = "0.1.7"
@@ -38,7 +38,7 @@ class PersonalMemoryService(BaseMemoryService):
38
38
  kwargs = {
39
39
  "workspace_id": user_id,
40
40
  "trajectories": [
41
- {"messages": messages, "score": 1.0}
41
+ {"messages": new_messages, "score": 1.0}
42
42
  ]
43
43
  }
44
44
 
@@ -67,7 +67,7 @@ class PersonalMemoryService(BaseMemoryService):
67
67
  raise ValueError(f"Invalid message type={type(message)}")
68
68
 
69
69
  # Extract query from the last message
70
- query = messages[-1]["content"] if messages else ""
70
+ query = new_messages[-1]["content"] if messages else ""
71
71
 
72
72
  kwargs = {
73
73
  "workspace_id": user_id,
@@ -38,7 +38,7 @@ class TaskMemoryService(BaseMemoryService):
38
38
  kwargs = {
39
39
  "workspace_id": user_id,
40
40
  "trajectories": [
41
- {"messages": messages, "score": 1.0}
41
+ {"messages": new_messages, "score": 1.0}
42
42
  ]
43
43
  }
44
44
 
@@ -68,8 +68,8 @@ class TaskMemoryService(BaseMemoryService):
68
68
 
69
69
  kwargs = {
70
70
  "workspace_id": user_id,
71
- "messages": messages,
72
- "top_k": filters.get("top_k", 1)
71
+ "messages": new_messages,
72
+ "top_k": filters.get("top_k", 1) if filters else 1
73
73
  }
74
74
 
75
75
  result: FlowResponse = await retrieve_flow(**kwargs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reme_ai
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Summary: Remember me
5
5
  Author-email: "jinli.yl" <jinli.yl@alibaba-inc.com>, "dengjiaji.djj" <dengjiaji.djj@alibaba-inc.com>, "caozouying.czy" <caozouying.czy@alibaba-inc.com>
6
6
  License: Apache License
@@ -212,7 +212,7 @@ Classifier: Operating System :: OS Independent
212
212
  Requires-Python: >=3.11
213
213
  Description-Content-Type: text/markdown
214
214
  License-File: LICENSE
215
- Requires-Dist: flowllm>=0.1.5
215
+ Requires-Dist: flowllm>=0.1.6
216
216
  Dynamic: license-file
217
217
 
218
218
  English | [**中文**](./README_ZH.md)
@@ -1,4 +1,4 @@
1
- reme_ai/__init__.py,sha256=kDmm8P-Agw4K7ROtPZ3Gv2GlwBozD-q-nccDJP-b44M,139
1
+ reme_ai/__init__.py,sha256=u-F1nTDZa6oqZy_J-Yo94qB-W9VEr7xaSz47-LYynsE,139
2
2
  reme_ai/app.py,sha256=vzcC8cZdeTl6JZJK_JhJE8Kt7MBsIXlAQvg90bq8g-Q,325
3
3
  reme_ai/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  reme_ai/config/config_parser.py,sha256=gk9bsMNnAlLLjChdalHWHgpOazyvZh5bItTUZcIGqbU,189
@@ -33,8 +33,8 @@ reme_ai/schema/__init__.py,sha256=tbBjMfV_ojRr2yybA-XSPzN71A6K9HXZ8Gaw7I-2hBM,69
33
33
  reme_ai/schema/memory.py,sha256=ur1ldmrrm3YZermeb6zhV9LgrBoUEJ29Ppz6J2Q8yhM,5483
34
34
  reme_ai/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  reme_ai/service/base_memory_service.py,sha256=nBDVAgoEqyb98t1Kl43u1v0aCStcsy7XbcWmEuk6dac,3212
36
- reme_ai/service/personal_memory_service.py,sha256=whosNiJbT777yJdpNzyvKcUOtCg6Fkmo2jvX2AevYjM,5030
37
- reme_ai/service/task_memory_service.py,sha256=TnA9NjG0kw9rXB_Cv7ZxoGXRQDm7R9wEytmIIqrOtPw,4865
36
+ reme_ai/service/personal_memory_service.py,sha256=AbTBbu4GY_me_mUxj5p9TBA8ME1AzIm6wATccUaC5tM,5038
37
+ reme_ai/service/task_memory_service.py,sha256=NjfWa5Z3R9v2iOxgb_De07bhMydeKf3qFhQOUFPmEJk,4891
38
38
  reme_ai/summary/__init__.py,sha256=K3qulFpRGZU_UsyYjIouR1F2CXwDBf9NkGiqYmIU2hQ,42
39
39
  reme_ai/summary/personal/__init__.py,sha256=z2taU9ejTWvZaAJ6Mr0jKKRh4fcBdZVxpiFWreTDhTg,417
40
40
  reme_ai/summary/personal/contra_repeat_op.py,sha256=cs3gnOkmFJgIH3KOS17FrxIiscW7lNqZiicCXZkgu9A,6297
@@ -79,9 +79,9 @@ reme_ai/vector_store/update_memory_freq_op.py,sha256=nZ7WIqC8hN-Pv9QZrTviax6DA1C
79
79
  reme_ai/vector_store/update_memory_utility_op.py,sha256=fXYAtgfUxmhJkgKA2kHucOBalXAk9O6vvG8Bn9asOTQ,1025
80
80
  reme_ai/vector_store/update_vector_store_op.py,sha256=_8T94tHe2nd5phsgmPZQdrYfVR7FvydMm9MJzlrESl4,1333
81
81
  reme_ai/vector_store/vector_store_action_op.py,sha256=qeoB_e0WBTnB9yQUkyc8jNNRO9JK_bcCwS2oU0LTJxs,2535
82
- reme_ai-0.1.5.dist-info/licenses/LICENSE,sha256=zFTWearO11HAlvEgtmY1XBBtk5TSj5P23zU5c_bNfb4,11343
83
- reme_ai-0.1.5.dist-info/METADATA,sha256=EAsEdZuAJyF2zCO3Rv7hN3B9PIzrcMUcmwe_Iar8tAY,27137
84
- reme_ai-0.1.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
85
- reme_ai-0.1.5.dist-info/entry_points.txt,sha256=6SP3ncXOMyKotdT4LHWPeaXo3-Sv-1qmK7OhVw76Xhw,42
86
- reme_ai-0.1.5.dist-info/top_level.txt,sha256=3ca2UBk97aSfPmGdg8LlVqyeLikb5qEnBEbfGgtzao0,8
87
- reme_ai-0.1.5.dist-info/RECORD,,
82
+ reme_ai-0.1.7.dist-info/licenses/LICENSE,sha256=zFTWearO11HAlvEgtmY1XBBtk5TSj5P23zU5c_bNfb4,11343
83
+ reme_ai-0.1.7.dist-info/METADATA,sha256=5GAggIi4CcLZa41Hz1b4WPtZ--1ylraHTl7QrkhIiKw,27137
84
+ reme_ai-0.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
85
+ reme_ai-0.1.7.dist-info/entry_points.txt,sha256=6SP3ncXOMyKotdT4LHWPeaXo3-Sv-1qmK7OhVw76Xhw,42
86
+ reme_ai-0.1.7.dist-info/top_level.txt,sha256=3ca2UBk97aSfPmGdg8LlVqyeLikb5qEnBEbfGgtzao0,8
87
+ reme_ai-0.1.7.dist-info/RECORD,,