Commit cc7122f
authored
feat: API1.1 (#434)
## Description
<!--
Please include a summary of the changes below;
Fill in the issue number that this PR addresses (if applicable);
Fill in the related MemOS-Docs repository issue or PR link (if
applicable);
Mention the person who will review this PR (if you know who it is);
Replace (summary), (issue), (docs-issue-or-pr-link), and (reviewer) with
the appropriate information.
请在下方填写更改的摘要;
填写此 PR 解决的问题编号(如果适用);
填写相关的 MemOS-Docs 仓库 issue 或 PR 链接(如果适用);
提及将审查此 PR 的人(如果您知道是谁);
替换 (summary)、(issue)、(docs-issue-or-pr-link) 和 (reviewer) 为适当的信息。
-->
Summary:
• Memory & Retrieval Core: async add (plain & preference), Preference
Memory pipeline, Reranker strategy suite, BM25 for TreeTextMemory,
MemReader structural parsing.
• Scheduler & Observability: API scheduler modularization
(schema/utils/analyzer), Redis ORM for history sync & mixture search,
metrics + request logs, Nacos-based dynamic config.
• Data & Infra: PolarDB graph backend with pool/timeout & fixes, unified
graph factory (Nebula/Neo4j/PolarDB), Milvus interface & item
optimizations, enhanced logging.
• Evaluation: PrefEval standardization; LoCoMo/LongMemEval/PersonaMem
pipeline upgrades; new utilities (e.g., mirix_utils.py).
• Stability & Fixes: query scheduling, message schema, Tree search
inputs, self-input prompts, SQLite list users, PolarDB value mapping;
pool/timeout tuning, usage data removal, graph-call toggle.
• Compatibility: adopt new async path/schemas/metrics; align preference
fields; migrate tests to Redis ORM; configure PolarDB pool/timeout
before rollout.
• 记忆与检索内核:新增 async add(明文/偏好)、偏好记忆全链路、Reranker 策略集、TreeTextMemory 引入
BM25、MemReader 结构化解析。
• 调度与可观测性:API 调度模块化(schema/utils/analyzer)、Redis ORM(历史同步与混合搜索)、metrics
指标与请求日志、Nacos 动态配置。
• 数据与基础设施:PolarDB 图后端(连接池/超时与修复)、图工厂统一(Nebula/Neo4j/PolarDB)、Milvus
接口与数据项优化、日志链路增强。
• 评估体系:PrefEval 字段标准化;LoCoMo/LongMemEval/PersonaMem 评测升级;新增工具(如
mirix_utils.py)。
• 稳定性与修复:修复查询调度、消息 schema、树检索输入、自输入提示、SQLite 用户列表、PolarDB
值映射;连接池/超时优化、移除 usage 数据、图调用开关。
• 兼容性:适配异步路径/新 schema/metrics;偏好字段按新规范;测试迁移至 Redis ORM;启用 PolarDB
前配置连接池与超时并压测。
Fix: #424 #426 #423 #443 #384 #406 #445
• Scheduler/Query: fixed query-schedule edge cases (#424).
• Schemas: corrected message schema inconsistencies (#426).
• Search I/O: fixed TreeTextMemory searcher input mismatch (#423).
• Prompts: fixed self-input prompt error (#443).
• Storage: fixed SQLite list-users error (#384).
• Graph/DB: corrected PolarDB value/graph issues (#406, #445).
• 调度/查询:修复查询调度边界问题(#424)。
• Schema:修正消息 schema 不一致(#426)。
• 检索 I/O:修复 Tree 搜索器输入不匹配(#423)。
• 提示:修复自输入提示错误(#443)。
• 存储:修复 SQLite 用户列表错误(#384)。
• 图/数据库:修正 PolarDB 值与图相关问题(#406、#445)。
Docs Issue/PR: (docs-issue-or-pr-link)
Reviewer: @(reviewer)
## Checklist:
- [ ] I have performed a self-review of my own code | 我已自行检查了自己的代码
- [ ] I have commented my code in hard-to-understand areas |
我已在难以理解的地方对代码进行了注释
- [ ] I have added tests that prove my fix is effective or that my
feature works | 我已添加测试以证明我的修复有效或功能正常
- [ ] I have created related documentation issue/PR in
[MemOS-Docs](https://github.com/MemTensor/MemOS-Docs) (if applicable) |
我已在 [MemOS-Docs](https://github.com/MemTensor/MemOS-Docs) 中创建了相关的文档
issue/PR(如果适用)
- [ ] I have linked the issue to this PR (if applicable) | 我已将 issue
链接到此 PR(如果适用)
- [ ] I have mentioned the person who will review this PR | 我已提及将审查此 PR
的人File tree
163 files changed
+19548
-2207
lines changed- docker
- docs
- evaluation
- configs-example
- scripts
- PrefEval
- locomo
- longmemeval
- personamem
- utils
- examples
- mem_os
- mem_reader
- mem_scheduler
- src/memos
- api
- middleware
- routers
- chunkers
- configs
- context
- embedders
- graph_dbs
- llms
- mem_cube
- mem_os
- mem_reader
- mem_scheduler
- analyzer
- general_modules
- monitors
- orm_modules
- schemas
- utils
- webservice_modules
- mem_user
- memories
- activation
- textual
- prefer_text_memory
- tree_text_memory
- organize
- retrieve
- reranker
- strategies
- templates
- vec_dbs
- tests
- configs
- llms
- mem_scheduler
- memories/textual
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
163 files changed
+19548
-2207
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
| |||
83 | 81 | | |
84 | 82 | | |
85 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
86 | 105 | | |
87 | 106 | | |
88 | 107 | | |
| |||
104 | 123 | | |
105 | 124 | | |
106 | 125 | | |
107 | | - | |
| 126 | + | |
108 | 127 | | |
109 | 128 | | |
110 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | | - | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
19 | 30 | | |
20 | 31 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
24 | 52 | | |
25 | | - | |
26 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
27 | 57 | | |
28 | | - | |
29 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
884 | 884 | | |
885 | 885 | | |
886 | 886 | | |
887 | | - | |
| 887 | + | |
888 | 888 | | |
889 | 889 | | |
890 | 890 | | |
| |||
939 | 939 | | |
940 | 940 | | |
941 | 941 | | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
942 | 948 | | |
943 | 949 | | |
944 | 950 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 6 | | |
10 | 7 | | |
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
| 12 | + | |
15 | 13 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 14 | + | |
| 15 | + | |
30 | 16 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
35 | 24 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
21 | 38 | | |
22 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
23 | 42 | | |
24 | 43 | | |
25 | 44 | | |
26 | 45 | | |
27 | 46 | | |
28 | | - | |
| 47 | + | |
29 | 48 | | |
30 | 49 | | |
31 | 50 | | |
| |||
45 | 64 | | |
46 | 65 | | |
47 | 66 | | |
48 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
49 | 70 | | |
50 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
51 | 78 | | |
52 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
53 | 83 | | |
54 | 84 | | |
This file was deleted.
0 commit comments