MemoryOS 0.0.1__py3-none-any.whl → 0.1.12__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.
Potentially problematic release.
This version of MemoryOS might be problematic. Click here for more details.
- memoryos-0.1.12.dist-info/METADATA +257 -0
- memoryos-0.1.12.dist-info/RECORD +117 -0
- memos/__init__.py +20 -1
- memos/api/start_api.py +420 -0
- memos/chunkers/__init__.py +4 -0
- memos/chunkers/base.py +24 -0
- memos/chunkers/factory.py +22 -0
- memos/chunkers/sentence_chunker.py +35 -0
- memos/configs/__init__.py +0 -0
- memos/configs/base.py +82 -0
- memos/configs/chunker.py +45 -0
- memos/configs/embedder.py +53 -0
- memos/configs/graph_db.py +45 -0
- memos/configs/llm.py +71 -0
- memos/configs/mem_chat.py +81 -0
- memos/configs/mem_cube.py +89 -0
- memos/configs/mem_os.py +70 -0
- memos/configs/mem_reader.py +53 -0
- memos/configs/mem_scheduler.py +78 -0
- memos/configs/memory.py +190 -0
- memos/configs/parser.py +38 -0
- memos/configs/utils.py +8 -0
- memos/configs/vec_db.py +64 -0
- memos/deprecation.py +262 -0
- memos/embedders/__init__.py +0 -0
- memos/embedders/base.py +15 -0
- memos/embedders/factory.py +23 -0
- memos/embedders/ollama.py +74 -0
- memos/embedders/sentence_transformer.py +40 -0
- memos/exceptions.py +30 -0
- memos/graph_dbs/__init__.py +0 -0
- memos/graph_dbs/base.py +215 -0
- memos/graph_dbs/factory.py +21 -0
- memos/graph_dbs/neo4j.py +827 -0
- memos/hello_world.py +97 -0
- memos/llms/__init__.py +0 -0
- memos/llms/base.py +16 -0
- memos/llms/factory.py +25 -0
- memos/llms/hf.py +231 -0
- memos/llms/ollama.py +82 -0
- memos/llms/openai.py +34 -0
- memos/llms/utils.py +14 -0
- memos/log.py +78 -0
- memos/mem_chat/__init__.py +0 -0
- memos/mem_chat/base.py +30 -0
- memos/mem_chat/factory.py +21 -0
- memos/mem_chat/simple.py +200 -0
- memos/mem_cube/__init__.py +0 -0
- memos/mem_cube/base.py +29 -0
- memos/mem_cube/general.py +146 -0
- memos/mem_cube/utils.py +24 -0
- memos/mem_os/client.py +5 -0
- memos/mem_os/core.py +819 -0
- memos/mem_os/main.py +12 -0
- memos/mem_os/product.py +89 -0
- memos/mem_reader/__init__.py +0 -0
- memos/mem_reader/base.py +27 -0
- memos/mem_reader/factory.py +21 -0
- memos/mem_reader/memory.py +298 -0
- memos/mem_reader/simple_struct.py +241 -0
- memos/mem_scheduler/__init__.py +0 -0
- memos/mem_scheduler/base_scheduler.py +164 -0
- memos/mem_scheduler/general_scheduler.py +305 -0
- memos/mem_scheduler/modules/__init__.py +0 -0
- memos/mem_scheduler/modules/base.py +74 -0
- memos/mem_scheduler/modules/dispatcher.py +103 -0
- memos/mem_scheduler/modules/monitor.py +82 -0
- memos/mem_scheduler/modules/redis_service.py +146 -0
- memos/mem_scheduler/modules/retriever.py +41 -0
- memos/mem_scheduler/modules/schemas.py +146 -0
- memos/mem_scheduler/scheduler_factory.py +21 -0
- memos/mem_scheduler/utils.py +26 -0
- memos/mem_user/user_manager.py +478 -0
- memos/memories/__init__.py +0 -0
- memos/memories/activation/__init__.py +0 -0
- memos/memories/activation/base.py +42 -0
- memos/memories/activation/item.py +25 -0
- memos/memories/activation/kv.py +232 -0
- memos/memories/base.py +19 -0
- memos/memories/factory.py +34 -0
- memos/memories/parametric/__init__.py +0 -0
- memos/memories/parametric/base.py +19 -0
- memos/memories/parametric/item.py +11 -0
- memos/memories/parametric/lora.py +41 -0
- memos/memories/textual/__init__.py +0 -0
- memos/memories/textual/base.py +89 -0
- memos/memories/textual/general.py +286 -0
- memos/memories/textual/item.py +167 -0
- memos/memories/textual/naive.py +185 -0
- memos/memories/textual/tree.py +289 -0
- memos/memories/textual/tree_text_memory/__init__.py +0 -0
- memos/memories/textual/tree_text_memory/organize/__init__.py +0 -0
- memos/memories/textual/tree_text_memory/organize/manager.py +305 -0
- memos/memories/textual/tree_text_memory/retrieve/__init__.py +0 -0
- memos/memories/textual/tree_text_memory/retrieve/reasoner.py +64 -0
- memos/memories/textual/tree_text_memory/retrieve/recall.py +158 -0
- memos/memories/textual/tree_text_memory/retrieve/reranker.py +111 -0
- memos/memories/textual/tree_text_memory/retrieve/retrieval_mid_structs.py +13 -0
- memos/memories/textual/tree_text_memory/retrieve/searcher.py +166 -0
- memos/memories/textual/tree_text_memory/retrieve/task_goal_parser.py +68 -0
- memos/memories/textual/tree_text_memory/retrieve/utils.py +48 -0
- memos/parsers/__init__.py +0 -0
- memos/parsers/base.py +15 -0
- memos/parsers/factory.py +19 -0
- memos/parsers/markitdown.py +22 -0
- memos/settings.py +8 -0
- memos/templates/__init__.py +0 -0
- memos/templates/mem_reader_prompts.py +98 -0
- memos/templates/mem_scheduler_prompts.py +65 -0
- memos/types.py +55 -0
- memos/vec_dbs/__init__.py +0 -0
- memos/vec_dbs/base.py +105 -0
- memos/vec_dbs/factory.py +21 -0
- memos/vec_dbs/item.py +43 -0
- memos/vec_dbs/qdrant.py +292 -0
- memoryos-0.0.1.dist-info/METADATA +0 -53
- memoryos-0.0.1.dist-info/RECORD +0 -5
- {memoryos-0.0.1.dist-info → memoryos-0.1.12.dist-info}/LICENSE +0 -0
- {memoryos-0.0.1.dist-info → memoryos-0.1.12.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: MemoryOS
|
|
3
|
+
Version: 0.1.12
|
|
4
|
+
Summary: Intelligence Begins with Memory
|
|
5
|
+
License: Apache-2.0
|
|
6
|
+
Keywords: memory,llm,language model,memoryOS,agent
|
|
7
|
+
Author: MemTensor
|
|
8
|
+
Author-email: lizy@memtensor.cn
|
|
9
|
+
Requires-Python: >=3.10,<4.0
|
|
10
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Requires-Dist: accelerate (>=1.7.0,<2.0.0)
|
|
17
|
+
Requires-Dist: chonkie (>=1.0.7,<2.0.0)
|
|
18
|
+
Requires-Dist: fastapi[all] (>=0.115.12,<0.116.0)
|
|
19
|
+
Requires-Dist: markitdown[docx,pdf,pptx,xls,xlsx] (>=0.1.1,<0.2.0)
|
|
20
|
+
Requires-Dist: neo4j (>=5.28.1,<6.0.0)
|
|
21
|
+
Requires-Dist: ollama (>=0.4.8,<0.5.0)
|
|
22
|
+
Requires-Dist: openai (>=1.77.0,<2.0.0)
|
|
23
|
+
Requires-Dist: qdrant-client (>=1.14.2,<2.0.0)
|
|
24
|
+
Requires-Dist: redis (>=6.2.0,<7.0.0)
|
|
25
|
+
Requires-Dist: sentence-transformers (>=4.1.0,<5.0.0)
|
|
26
|
+
Requires-Dist: sqlalchemy (>=2.0.41,<3.0.0)
|
|
27
|
+
Requires-Dist: tenacity (>=9.1.2,<10.0.0)
|
|
28
|
+
Requires-Dist: transformers (>=4.51.3,<5.0.0)
|
|
29
|
+
Project-URL: Repository, https://github.com/MemTensor/MemOS
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
|
|
32
|
+
<div align="center">
|
|
33
|
+
<a href="https://memos.openmem.net/">
|
|
34
|
+
<img src="docs/assets/banner_new.gif" alt="MemOS Banner">
|
|
35
|
+
</a>
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<h1 align="center">
|
|
40
|
+
<img src="docs/assets/memos_logo.png" alt="MemOS Logo" width="50"/> MemOS 1.0: 星河 (Stellar) <img src="https://img.shields.io/badge/status-Preview-blue" alt="Preview Badge"/>
|
|
41
|
+
</h1>
|
|
42
|
+
|
|
43
|
+
<p>
|
|
44
|
+
<a href="https://www.memtensor.com.cn/">
|
|
45
|
+
<img alt="Static Badge" src="https://img.shields.io/badge/Maintained_by-MemTensor-blue">
|
|
46
|
+
</a>
|
|
47
|
+
<a href="https://pypi.org/project/MemoryOS">
|
|
48
|
+
<img src="https://img.shields.io/pypi/v/MemoryOS?label=pypi%20package" alt="PyPI Version">
|
|
49
|
+
</a>
|
|
50
|
+
<a href="https://pypi.org/project/MemoryOS">
|
|
51
|
+
<img src="https://img.shields.io/pypi/pyversions/MemoryOS.svg" alt="Supported Python versions">
|
|
52
|
+
</a>
|
|
53
|
+
<a href="https://memos.openmem.net/docs/home">
|
|
54
|
+
<img src="https://img.shields.io/badge/Documentation-view-blue.svg" alt="Documentation">
|
|
55
|
+
</a>
|
|
56
|
+
<a href="https://arxiv.org/abs/2505.22101">
|
|
57
|
+
<img src="https://img.shields.io/badge/arXiv-2505.22101-b31b1b.svg" alt="ArXiv Paper">
|
|
58
|
+
</a>
|
|
59
|
+
<a href="https://github.com/MemTensor/MemOS/discussions">
|
|
60
|
+
<img src="https://img.shields.io/badge/GitHub-Discussions-181717.svg?logo=github" alt="GitHub Discussions">
|
|
61
|
+
</a>
|
|
62
|
+
<a href="https://discord.gg/Txbx3gebZR">
|
|
63
|
+
<img src="https://img.shields.io/badge/Discord-join%20chat-7289DA.svg?logo=discord" alt="Discord">
|
|
64
|
+
</a>
|
|
65
|
+
<a href="docs/assets/memos-wechat-group.png">
|
|
66
|
+
<img src="https://img.shields.io/badge/WeChat-Group-07C160.svg?logo=wechat" alt="WeChat Group">
|
|
67
|
+
</a>
|
|
68
|
+
<a href="https://opensource.org/license/apache-2-0/">
|
|
69
|
+
<img src="https://img.shields.io/badge/License-Apache_2.0-green.svg?logo=apache" alt="License">
|
|
70
|
+
</a>
|
|
71
|
+
</p>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
<a href="https://memos.openmem.net/">
|
|
77
|
+
<img src="docs/assets/SOTA_Score.jpg" alt="SOTA SCORE">
|
|
78
|
+
</a>
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
**MemOS** is an operating system for Large Language Models (LLMs) that enhances them with long-term memory capabilities. It allows LLMs to store, retrieve, and manage information, enabling more context-aware, consistent, and personalized interactions.
|
|
82
|
+
|
|
83
|
+
- **Website**: <a href="https://memos.openmem.net/" target="_blank">https://memos.openmem.net/</a>
|
|
84
|
+
- **Documentation**: <a href="https://memos.openmem.net/docs/home" target="_blank">https://memos.openmem.net/docs/home</a>
|
|
85
|
+
- **API Reference**: <a href="https://memos.openmem.net/docs/api/info" target="_blank">https://memos.openmem.net/docs/api/info</a>
|
|
86
|
+
- **Source Code**: <a href="https://github.com/MemTensor/MemOS" target="_blank">https://github.com/MemTensor/MemOS</a>
|
|
87
|
+
|
|
88
|
+
## 📈 Performance Benchmark
|
|
89
|
+
|
|
90
|
+
MemOS demonstrates significant improvements over baseline memory solutions in multiple reasoning tasks.
|
|
91
|
+
|
|
92
|
+
| Model | Avg. Score | Multi-Hop | Open Domain | Single-Hop | Temporal Reasoning |
|
|
93
|
+
|-------------|------------|-----------|-------------|------------|---------------------|
|
|
94
|
+
| **OpenAI** | 0.5275 | 0.6028 | 0.3299 | 0.6183 | 0.2825 |
|
|
95
|
+
| **MemOS** | **0.7331** | **0.6430** | **0.5521** | **0.7844** | **0.7321** |
|
|
96
|
+
| **Improvement** | **+38.98%** | **+6.67%** | **+67.35%** | **+26.86%** | **+159.15%** |
|
|
97
|
+
|
|
98
|
+
> 💡 **Temporal reasoning accuracy improved by 159% compared to the OpenAI baseline.**
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Details of End-to-End Evaluation on LOCOMO
|
|
103
|
+
|
|
104
|
+
> [!NOTE]
|
|
105
|
+
> Comparison of LLM Judge Scores across five major tasks in the LOCOMO benchmark. Each bar shows the mean evaluation score judged by LLMs for a given method-task pair, with standard deviation as error bars. MemOS-0630 consistently outperforms baseline methods (LangMem, Zep, OpenAI, Mem0) across all task types, especially in multi-hop and temporal reasoning scenarios.
|
|
106
|
+
|
|
107
|
+
<a href="https://memos.openmem.net/">
|
|
108
|
+
<img src="docs/assets/score_all_end2end.jpg" alt="END2END SCORE">
|
|
109
|
+
</a>
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## ✨ Key Features
|
|
115
|
+
|
|
116
|
+
- **🧠 Memory-Augmented Generation (MAG)**: Provides a unified API for memory operations, integrating with LLMs to enhance chat and reasoning with contextual memory retrieval.
|
|
117
|
+
- **📦 Modular Memory Architecture (MemCube)**: A flexible and modular architecture that allows for easy integration and management of different memory types.
|
|
118
|
+
- **💾 Multiple Memory Types**:
|
|
119
|
+
- **Textual Memory**: For storing and retrieving unstructured or structured text knowledge.
|
|
120
|
+
- **Activation Memory**: Caches key-value pairs (`KVCacheMemory`) to accelerate LLM inference and context reuse.
|
|
121
|
+
- **Parametric Memory**: Stores model adaptation parameters (e.g., LoRA weights).
|
|
122
|
+
- **🔌 Extensible**: Easily extend and customize memory modules, data sources, and LLM integrations.
|
|
123
|
+
|
|
124
|
+
## 🚀 Getting Started
|
|
125
|
+
|
|
126
|
+
Here's a quick example of how to create a **`MemCube`**, load it from a directory, access its memories, and save it.
|
|
127
|
+
|
|
128
|
+
```python
|
|
129
|
+
from memos.mem_cube.general import GeneralMemCube
|
|
130
|
+
|
|
131
|
+
# Initialize a MemCube from a local directory
|
|
132
|
+
mem_cube = GeneralMemCube.init_from_dir("examples/data/mem_cube_2")
|
|
133
|
+
|
|
134
|
+
# Access and print all memories
|
|
135
|
+
print("--- Textual Memories ---")
|
|
136
|
+
for item in mem_cube.text_mem.get_all():
|
|
137
|
+
print(item)
|
|
138
|
+
|
|
139
|
+
print("\n--- Activation Memories ---")
|
|
140
|
+
for item in mem_cube.act_mem.get_all():
|
|
141
|
+
print(item)
|
|
142
|
+
|
|
143
|
+
# Save the MemCube to a new directory
|
|
144
|
+
mem_cube.dump("tmp/mem_cube")
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
What about **`MOS`** (Memory Operating System)? It's a higher-level orchestration layer that manages multiple MemCubes and provides a unified API for memory operations. Here's a quick example of how to use MOS:
|
|
148
|
+
|
|
149
|
+
```python
|
|
150
|
+
from memos.configs.mem_os import MOSConfig
|
|
151
|
+
from memos.mem_os.main import MOS
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
# init MOS
|
|
155
|
+
mos_config = MOSConfig.from_json_file("examples/data/config/simple_memos_config.json")
|
|
156
|
+
memory = MOS(mos_config)
|
|
157
|
+
|
|
158
|
+
# create user
|
|
159
|
+
user_id = "b41a34d5-5cae-4b46-8c49-d03794d206f5"
|
|
160
|
+
memory.create_user(user_id=user_id)
|
|
161
|
+
|
|
162
|
+
# register cube for user
|
|
163
|
+
memory.register_mem_cube("examples/data/mem_cube_2", user_id=user_id)
|
|
164
|
+
|
|
165
|
+
# add memory for user
|
|
166
|
+
memory.add(
|
|
167
|
+
messages=[
|
|
168
|
+
{"role": "user", "content": "I like playing football."},
|
|
169
|
+
{"role": "assistant", "content": "I like playing football too."},
|
|
170
|
+
],
|
|
171
|
+
user_id=user_id,
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
# Later, when you want to retrieve memory for user
|
|
175
|
+
retrieved_memories = memory.search(query="What do you like?", user_id=user_id)
|
|
176
|
+
# output text_memories: I like playing football, act_memories, para_memories
|
|
177
|
+
print(f"text_memories: {retrieved_memories['text_mem']}")
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
For more detailed examples, please check out the [`examples`](./examples) directory.
|
|
181
|
+
|
|
182
|
+
## 📦 Installation
|
|
183
|
+
|
|
184
|
+
> [!WARNING]
|
|
185
|
+
> Currently, MemOS primarily supports Linux platforms. You may encounter issues on Windows and macOS temporarily.
|
|
186
|
+
|
|
187
|
+
### Install via pip
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
pip install MemoryOS
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Development Install
|
|
194
|
+
|
|
195
|
+
To contribute to MemOS, clone the repository and install it in editable mode:
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
git clone https://github.com/MemTensor/MemOS.git
|
|
199
|
+
cd MemOS
|
|
200
|
+
make install
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Optional Dependencies
|
|
204
|
+
|
|
205
|
+
#### Ollama Support
|
|
206
|
+
|
|
207
|
+
To use MemOS with [Ollama](https://ollama.com/), first install the Ollama CLI:
|
|
208
|
+
```bash
|
|
209
|
+
curl -fsSL https://ollama.com/install.sh | sh
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
#### Transformers Support
|
|
213
|
+
|
|
214
|
+
To use functionalities based on the `transformers` library, ensure you have [PyTorch](https://pytorch.org/get-started/locally/) installed (CUDA version recommended for GPU acceleration).
|
|
215
|
+
|
|
216
|
+
## 💬 Community & Support
|
|
217
|
+
|
|
218
|
+
Join our community to ask questions, share your projects, and connect with other developers.
|
|
219
|
+
|
|
220
|
+
- **GitHub Issues**: Report bugs or request features in our <a href="https://github.com/MemTensor/MemOS/issues" target="_blank">GitHub Issues</a>.
|
|
221
|
+
- **GitHub Pull Requests**: Contribute code improvements via <a href="https://github.com/MemTensor/MemOS/pulls" target="_blank">Pull Requests</a>.
|
|
222
|
+
- **GitHub Discussions**: Participate in our <a href="https://github.com/MemTensor/MemOS/discussions" target="_blank">GitHub Discussions</a> to ask questions or share ideas.
|
|
223
|
+
- **Discord**: Join our <a href="https://discord.gg/Txbx3gebZR" target="_blank">Discord Server</a>.
|
|
224
|
+
- **WeChat**: Scan the QR code to join our WeChat group.
|
|
225
|
+
|
|
226
|
+
<img src="docs/assets/qr-code.png" alt="QR Code" width="600">
|
|
227
|
+
|
|
228
|
+
## 📜 Citation
|
|
229
|
+
|
|
230
|
+
If you use MemOS in your research, please cite our paper:
|
|
231
|
+
|
|
232
|
+
```bibtex
|
|
233
|
+
@article{li2025memos,
|
|
234
|
+
title={MemOS: An Operating System for Memory-Augmented Generation (MAG) in Large Language Models},
|
|
235
|
+
author={Li, Zhiyu and Song, Shichao and Wang, Hanyu and Niu, Simin and Chen, Ding and Yang, Jiawei and Xi, Chenyang and Lai, Huayi and Zhao, Jihao and Wang, Yezhaohui and others},
|
|
236
|
+
journal={arXiv preprint arXiv:2505.22101},
|
|
237
|
+
year={2025}
|
|
238
|
+
}
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
## 🙌 Contributing
|
|
242
|
+
|
|
243
|
+
We welcome contributions from the community! Please read our [contribution guidelines](./docs/contribution/overview.md) to get started.
|
|
244
|
+
|
|
245
|
+
## 📄 License
|
|
246
|
+
|
|
247
|
+
MemOS is licensed under the [Apache 2.0 License](./LICENSE).
|
|
248
|
+
|
|
249
|
+
## 📰 News
|
|
250
|
+
|
|
251
|
+
Stay up to date with the latest MemOS announcements, releases, and community highlights.
|
|
252
|
+
|
|
253
|
+
- **2025-07-07** – 🎉 *MemOS 1.0 (Stellar) Preview Release*: A SOTA Memory OS for LLMs is now open-sourced.
|
|
254
|
+
- **2025-05-28** – 🎉 *Short Paper Uploaded*: [MemOS: An Operating System for Memory-Augmented Generation (MAG) in Large Language Models](https://arxiv.org/abs/2505.22101) was published on arXiv.
|
|
255
|
+
- **2024-07-04** – 🎉 *Memory3 Model Released at WAIC 2024*: The new memory-layered architecture model was unveiled at the 2024 World Artificial Intelligence Conference.
|
|
256
|
+
- **2024-07-01** – 🎉 *Memory3 Paper Released*: [Memory3: Language Modeling with Explicit Memory](https://arxiv.org/abs/2407.01178) introduces the new approach to structured memory in LLMs.
|
|
257
|
+
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
memos/__init__.py,sha256=qFk4znjrbZ17ptByd39yT-S-ukxsBEzte0uV3utCSe0,576
|
|
2
|
+
memos/api/start_api.py,sha256=vDKS3D8AEwlDAkpWxHiblzVqcQ3cvGSnnpP4Jhjm3GE,14656
|
|
3
|
+
memos/chunkers/__init__.py,sha256=7lZOTN3e9Yp5XBsDX5wnWJ3tY126cRU9GmfevzJXAtU,67
|
|
4
|
+
memos/chunkers/base.py,sha256=z0rG5vM7FGremQdSZ_3jlTGbsDtlkWAYWdtSAGqpaR4,655
|
|
5
|
+
memos/chunkers/factory.py,sha256=ixpYz41GG3SZW-1ynLvfbhOZ0aGnFi2wUIYT4_Uxh30,693
|
|
6
|
+
memos/chunkers/sentence_chunker.py,sha256=U0MpeaxONiz3daYXVwH7QiPvivhr2OeKGXdKMG2YJT0,1191
|
|
7
|
+
memos/configs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
memos/configs/base.py,sha256=bOOhEU6HGFTq5jne_TXn8Br72rvAfJHYvYllFUPs12A,2588
|
|
9
|
+
memos/configs/chunker.py,sha256=Ulci0MyhS_FkuV95l7Pr9Vei179aEFEUigwVmtmSDfI,1593
|
|
10
|
+
memos/configs/embedder.py,sha256=a7EbWB3tnqeK_pdK6-CneoKIwSqQg6sJrXuHX3J1PnI,1769
|
|
11
|
+
memos/configs/graph_db.py,sha256=h5wz2lJSdB1IVaidzWHXDfvL4_IAjrjYrmypu1QCCq4,1432
|
|
12
|
+
memos/configs/llm.py,sha256=rfIyuxx2xefBD5NpZaeEy3M0gEgEEhvTp1RmRG-zodw,2378
|
|
13
|
+
memos/configs/mem_chat.py,sha256=TjEQHRG1HpLwCBo3hrn5aVK23rykNtV6Be5p4YIg7F4,2571
|
|
14
|
+
memos/configs/mem_cube.py,sha256=AvffqpFC2WmzshouxLJbabuzt0PKLWSauQMnagP_EM0,3088
|
|
15
|
+
memos/configs/mem_os.py,sha256=XEfg8CA6A65vJ0X-OwLQSMsFhGNeBVwCGWGYu4Phuo0,2348
|
|
16
|
+
memos/configs/mem_reader.py,sha256=y1z4aABKgg-QzROApy3gAPyYX9M5CLi3vT_xKye8Ohs,1864
|
|
17
|
+
memos/configs/mem_scheduler.py,sha256=bTsBfl9GoXbjkiPDCenH8K2QY4RfAJNk-XN1UBl2W4Q,2959
|
|
18
|
+
memos/configs/memory.py,sha256=VIu73GIyrrrujZHOB91quSu2XP5oWsbSF3yjKm1o1dE,6606
|
|
19
|
+
memos/configs/parser.py,sha256=dy-QoevJbCnkJePKgpzR4oziOzYnS4jB6XH-YrpeMns,1145
|
|
20
|
+
memos/configs/utils.py,sha256=X9NQ6-xURsZROAdS3WT96phVfHcOHgDPOo2Yq68QoKM,242
|
|
21
|
+
memos/configs/vec_db.py,sha256=Gjhhda94pyTDjyJGe2Z6rVEqH4FtViiwq1-7QWhjarM,2335
|
|
22
|
+
memos/deprecation.py,sha256=k2i4bBKqIwu20guwJmPPjOm7reOy19GzLwrTMrIqjPk,7408
|
|
23
|
+
memos/embedders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
+
memos/embedders/base.py,sha256=zOYERcaqBVCyMVndcR6vhFC_O2itEuTM058odDfhTx8,449
|
|
25
|
+
memos/embedders/factory.py,sha256=DkHl0z2GjLtxe0ASl7o9SDLtQg-hEgdmopuf6HdsudA,845
|
|
26
|
+
memos/embedders/ollama.py,sha256=8lHeMCqxej44ZgeDsPGL-5almxRBWsYYYflu5LeAf7w,2361
|
|
27
|
+
memos/embedders/sentence_transformer.py,sha256=lePjsdtNaf69HbOEsbG31Nj1BWgi0nCdkPtIYleLYWM,1377
|
|
28
|
+
memos/exceptions.py,sha256=UnBoZUYdwb1KoQPE-pXSLT4yOjkwxse9fx0rb_MhEzo,531
|
|
29
|
+
memos/graph_dbs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
|
+
memos/graph_dbs/base.py,sha256=dTCdoYNS6FZQukpmpqhh8c_NwZ9Myql41g1Im8aDR6E,6873
|
|
31
|
+
memos/graph_dbs/factory.py,sha256=9fS8w0GowWNMSupEyXyTRnivX-RJxTkxPy-tNHs15OM,732
|
|
32
|
+
memos/graph_dbs/neo4j.py,sha256=95x1SJVaXbqryykvUqQXqHMBTtZ4za1iew_8T1hlGq4,31268
|
|
33
|
+
memos/hello_world.py,sha256=RV1vXfK1_U_xAvSusqc-4A8wk3yr8WEQ9q88dmBxvnI,3057
|
|
34
|
+
memos/llms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
|
+
memos/llms/base.py,sha256=E7qlIWUi_bxRwbKw0vGG7NjHksz45D_-gcrHKT3Ak1k,438
|
|
36
|
+
memos/llms/factory.py,sha256=1JP2ZwUKN4ywaNgdZcRM6wSjahnEXqyuFiGzoxLCadY,792
|
|
37
|
+
memos/llms/hf.py,sha256=rxcR8nAvhezsIQNeOeow-xn-z2h9j1poJO2jPNcJAg8,9008
|
|
38
|
+
memos/llms/ollama.py,sha256=_nZYe0OauPWWcFFYVPSNtvyDGblrL49-EznApa-Mr5I,2565
|
|
39
|
+
memos/llms/openai.py,sha256=QoksbFh0ptsRFDOJzUyTl-Qovd3LzVYid9JqGSBH39U,1145
|
|
40
|
+
memos/llms/utils.py,sha256=OcbM9iSpFJpio7sTT5wvxVx-JnqjIx7eSgiRk7dt0ZI,292
|
|
41
|
+
memos/log.py,sha256=ocQi2NWlpefgxOJi9EoB0as6tXhLA4dmXuVIgZT52FE,2234
|
|
42
|
+
memos/mem_chat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
43
|
+
memos/mem_chat/base.py,sha256=LICB_mwUkdCVKb_r33GEPbrEr-2v3dEnI54cAvhcEew,830
|
|
44
|
+
memos/mem_chat/factory.py,sha256=KKCDG9FrpfY2hD3iJ4GM9x8dN09dyhstP1cOUH_knrY,720
|
|
45
|
+
memos/mem_chat/simple.py,sha256=-DRlE8nKZcGuwEubALK-nUf-wWRbGXkDJXUg8Dxhoyo,7919
|
|
46
|
+
memos/mem_cube/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
47
|
+
memos/mem_cube/base.py,sha256=NoZKz16oO5AAnJ0alcY52Z1c3C1rbGRe8Znz0CCzDnw,864
|
|
48
|
+
memos/mem_cube/general.py,sha256=ad7Qzshf-psBuu24BX_K0NDN0KDuwliAi06TG4wyH1M,5535
|
|
49
|
+
memos/mem_cube/utils.py,sha256=-6KiCCzy1PehbGAZY20BVcelvdiKFSu4CXMXi8qNrGU,777
|
|
50
|
+
memos/mem_os/client.py,sha256=0M-WRTlQr7fDAYtq4B8dsMR0PfmyvD-ySMhKcW3Umd0,43
|
|
51
|
+
memos/mem_os/core.py,sha256=csZQqZfbdACapcA85Ahh8vBfi0VPFGM_6yilfmln008,34836
|
|
52
|
+
memos/mem_os/main.py,sha256=QczPzG7P8aIv8oZgoSDAoa3JfzKqMS1qutKbMidsRXE,344
|
|
53
|
+
memos/mem_os/product.py,sha256=SFLFEleZISCeBU19b-uohFsaUNXB9tN-GGypuhDFx1I,3043
|
|
54
|
+
memos/mem_reader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
55
|
+
memos/mem_reader/base.py,sha256=SSuaD3J88XbHsME1Qa-EAgZ57xApPHPHppMSeeS3JZ4,957
|
|
56
|
+
memos/mem_reader/factory.py,sha256=emKnId9BhScSkqCZyLSLWntixnU3wAMIOVdsRpHldJA,766
|
|
57
|
+
memos/mem_reader/memory.py,sha256=f3fAjrs8Jf6mBZWTgzkEZle7XjDwTJHxM1L2sOb85Tg,13288
|
|
58
|
+
memos/mem_reader/simple_struct.py,sha256=QQOBX-26cysWH-vudf9FzxGa2O0pkZ8_bQ7zGmGXz4o,9493
|
|
59
|
+
memos/mem_scheduler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
60
|
+
memos/mem_scheduler/base_scheduler.py,sha256=bYxLm6nUorJGm8DCiBOJ6DG8eqCK3cCIrm3cEe2be7M,6617
|
|
61
|
+
memos/mem_scheduler/general_scheduler.py,sha256=Tp9Nh8qFVR9TklmmISSoBoeHoWTqM0P977gmb-HS6rM,12895
|
|
62
|
+
memos/mem_scheduler/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
63
|
+
memos/mem_scheduler/modules/base.py,sha256=j2IJLiDGfen-JyJZSsVQ45s4kvdvPTvJEaqXeEN8Png,2824
|
|
64
|
+
memos/mem_scheduler/modules/dispatcher.py,sha256=JFeqbSBRMfjkOP4ovL9DmB-MzRbOdaVo_GcuxL_0yuY,3902
|
|
65
|
+
memos/mem_scheduler/modules/monitor.py,sha256=mZIJIPhRxd9aH02MFP9gGZ7RqbhZlSQGtfXTJCKYmKU,2683
|
|
66
|
+
memos/mem_scheduler/modules/redis_service.py,sha256=sEgglO1fTpdEE39tl0e2GAA8Y0gXxNo3kqu5lDuyVx4,5479
|
|
67
|
+
memos/mem_scheduler/modules/retriever.py,sha256=NJEFpX2ap4mSQZ9GYBvBr9QMD4QpgLEYaT1DkR1nyKA,1351
|
|
68
|
+
memos/mem_scheduler/modules/schemas.py,sha256=J7Rv4M932Wdm-NoOWQne9txOK7j0V9ScdsRH7klPGTI,5301
|
|
69
|
+
memos/mem_scheduler/scheduler_factory.py,sha256=pw6FKO0EuxFRipMnD22DvcjbM6pdmVfJmRjUvdTaU5E,800
|
|
70
|
+
memos/mem_scheduler/utils.py,sha256=xa2BotLf7iAQ4bVJEujPvRjuzWItOA2gP2H3BkBM5XY,582
|
|
71
|
+
memos/mem_user/user_manager.py,sha256=b5MD2vZd3nrl0jb6xWHKchjOnqpCfaaoxomzYYphmms,15269
|
|
72
|
+
memos/memories/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
73
|
+
memos/memories/activation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
74
|
+
memos/memories/activation/base.py,sha256=kiC35AOnuofgYMzLxZyVULsfOoVq03BGvi6AXtNvF-I,1151
|
|
75
|
+
memos/memories/activation/item.py,sha256=kjM7khcHn-7SJfOmOU9QXwPekRv5Y7xdRQABg_4arGU,757
|
|
76
|
+
memos/memories/activation/kv.py,sha256=nFETbDZk84Tw6j2b123uFck5k3RGlOkYIHYr11Jk6fw,8061
|
|
77
|
+
memos/memories/base.py,sha256=Sr-dEuDc982WwdVREQ2nL8L6rUc0KZPTaBJeYdgx8h8,577
|
|
78
|
+
memos/memories/factory.py,sha256=PZ9OaEAgV2hDwo6UhyCe3OMplOYWefMyYEpXXc-hhGs,1311
|
|
79
|
+
memos/memories/parametric/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
80
|
+
memos/memories/parametric/base.py,sha256=RQK2LeaMRr2rVbfoa0M7RJx4r0dGD_uBXt73eizBVhI,667
|
|
81
|
+
memos/memories/parametric/item.py,sha256=9FcY7kf53Uvl5FGXn23o2c0dI_9aUcYjUqTxKOMlbuI,219
|
|
82
|
+
memos/memories/parametric/lora.py,sha256=TqSI2OjmFi-XXCeM-MchSwh1sAhOwL7_JnOwSy9qpis,1397
|
|
83
|
+
memos/memories/textual/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
84
|
+
memos/memories/textual/base.py,sha256=3XVeuXZY3ZFzZ6zHIE3l5hx7X2PiH7orxvCwrNZ1l3U,2812
|
|
85
|
+
memos/memories/textual/general.py,sha256=7iektZA-_iR80sOlADW2EFkPT5Utbunu9hdZgT7Ocrk,11072
|
|
86
|
+
memos/memories/textual/item.py,sha256=v6YYDPdPt5uwsJxLlaMwi5m1r7Als2EwgFQhqBvNHRQ,6296
|
|
87
|
+
memos/memories/textual/naive.py,sha256=Z_gfbxI6cQGJ_raOTQic4fnpo493Xq3yEQ8qDV4xplo,6954
|
|
88
|
+
memos/memories/textual/tree.py,sha256=VxrdhKEsWCeo1T4cNtBufdXKfqz3Di9ieuGty2iGzz0,12156
|
|
89
|
+
memos/memories/textual/tree_text_memory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
90
|
+
memos/memories/textual/tree_text_memory/organize/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
91
|
+
memos/memories/textual/tree_text_memory/organize/manager.py,sha256=_nCKzkDk77D_KRSLHwjT1f8Ra9waNVCKs2sBEsmBypk,12341
|
|
92
|
+
memos/memories/textual/tree_text_memory/retrieve/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
93
|
+
memos/memories/textual/tree_text_memory/retrieve/reasoner.py,sha256=hwy8iOEZwQFHzzvUQ2mwjGly-a4K8PhYQ1PN8H-Gdqo,2305
|
|
94
|
+
memos/memories/textual/tree_text_memory/retrieve/recall.py,sha256=a1P-L3ZER2wh6qTy6p2EhJ-6mSeSisbZgJnHjQv4XkM,5846
|
|
95
|
+
memos/memories/textual/tree_text_memory/retrieve/reranker.py,sha256=U_O0uEKpWHAURhSvkzjYoR2LC8v8vzBjRo8MTeW_6i4,3680
|
|
96
|
+
memos/memories/textual/tree_text_memory/retrieve/retrieval_mid_structs.py,sha256=jZs2S1jtd727gqDKs8clYCOwcqOBnrl_UmFU1FPE0w8,360
|
|
97
|
+
memos/memories/textual/tree_text_memory/retrieve/searcher.py,sha256=dKjyI3OrEhq224XxN0xod-lYHJfPPOEGkGPZHm09kdo,6547
|
|
98
|
+
memos/memories/textual/tree_text_memory/retrieve/task_goal_parser.py,sha256=Jz1ZGmceTa3CBGIPX3j728EawgFkGtGiJFsV4QcSrEw,2620
|
|
99
|
+
memos/memories/textual/tree_text_memory/retrieve/utils.py,sha256=JU9_3OTRp1lXHWV6SuRUIO_GjRCPclEu9MrjNZX_kck,1406
|
|
100
|
+
memos/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
101
|
+
memos/parsers/base.py,sha256=AWgWIZzReDiTqiv6z08_9aG2KHVzc4Bdr0Lowz0mWVI,435
|
|
102
|
+
memos/parsers/factory.py,sha256=hPKTR0wVgMQ5Z9ZL-a9FyHWCpz9UcrG2oSEDYBAoB3g,704
|
|
103
|
+
memos/parsers/markitdown.py,sha256=Yh7YAv8PFsz3WgegrwtA_hqaC9W4SOMZP7IRXxcnn_w,615
|
|
104
|
+
memos/settings.py,sha256=HYNBFRW0CS2Kh4GmMRMA-Yrh3ZhJno4S4B6gx6P3T30,178
|
|
105
|
+
memos/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
106
|
+
memos/templates/mem_reader_prompts.py,sha256=_I9W5AHpmyQKzbuty-NkTBXufDtHzxQmXGvMgxScTa0,5924
|
|
107
|
+
memos/templates/mem_scheduler_prompts.py,sha256=53bcOCC32790tVJ7_s7o0jwu6hg7jUs-z8dyahlLv24,2417
|
|
108
|
+
memos/types.py,sha256=N7XBYxDTdc50KEsS6YxHvYgs23ykGsZ-wNnaJBVdVi4,1791
|
|
109
|
+
memos/vec_dbs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
110
|
+
memos/vec_dbs/base.py,sha256=a_-Gsh51C1_8R35mK7DykDxQTicmdgyz4fbEw8d5Mlg,3165
|
|
111
|
+
memos/vec_dbs/factory.py,sha256=Noa4caqzPT9b59i2jzdpAHFCSHiMfDmgRox1POkRRfE,710
|
|
112
|
+
memos/vec_dbs/item.py,sha256=mLrcHF0nWtMCUjScBgaeeSqabQ3vJhKr_6wrU_g25ns,1425
|
|
113
|
+
memos/vec_dbs/qdrant.py,sha256=I_XFmz_7SgFojMTFaqkPvwQEdMBl0MsCKZ43qatwuV0,9858
|
|
114
|
+
memoryos-0.1.12.dist-info/LICENSE,sha256=FU-b6N8tVc7dzUZGyNjUIG1Ihnrh2iuBziq4a1Gl8HU,11358
|
|
115
|
+
memoryos-0.1.12.dist-info/METADATA,sha256=_XKe1CwEwEL77cX3bF2FRAhu6641gaPTCnFVuOH-cSQ,10818
|
|
116
|
+
memoryos-0.1.12.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
117
|
+
memoryos-0.1.12.dist-info/RECORD,,
|
memos/__init__.py
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
|
-
__version__ = "0.
|
|
1
|
+
__version__ = "0.1.12"
|
|
2
|
+
|
|
3
|
+
from memos.configs.mem_cube import GeneralMemCubeConfig
|
|
4
|
+
from memos.configs.mem_os import MOSConfig
|
|
5
|
+
from memos.configs.mem_scheduler import SchedulerConfigFactory
|
|
6
|
+
from memos.mem_cube.general import GeneralMemCube
|
|
7
|
+
from memos.mem_os.main import MOS
|
|
8
|
+
from memos.mem_scheduler.general_scheduler import GeneralScheduler
|
|
9
|
+
from memos.mem_scheduler.scheduler_factory import SchedulerFactory
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"MOS",
|
|
14
|
+
"GeneralMemCube",
|
|
15
|
+
"GeneralMemCubeConfig",
|
|
16
|
+
"GeneralScheduler",
|
|
17
|
+
"MOSConfig",
|
|
18
|
+
"SchedulerConfigFactory",
|
|
19
|
+
"SchedulerFactory",
|
|
20
|
+
]
|