From 3387b71e0437be90fb27da143162210a1c6da5d5 Mon Sep 17 00:00:00 2001
From: motongt <62374425+Lalala-ro@users.noreply.github.com>
Date: Wed, 10 Dec 2025 15:11:30 +0800
Subject: [PATCH] Revise README with detailed project information
Expanded project description and added key features, installation instructions, and community support notes.
---
README.md | 144 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 143 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 19cf4df46..7d9165b3c 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,143 @@
-# O-Mem
\ No newline at end of file
+# O-Mem: Omni Memory System for Personalized, Long Horizon, Self-Evolving Agents
+
+[](LICENSE) [](https://www.python.org) []((https://arxiv.org/pdf/2511.13593))
+[](https://huggingface.co/papers/2511.13593)
+
+
+
+
+
+---
+
+

+
+
+๐ Current agent memory systems often rely on **semantic clustering and chunk-based retrieval**, which can:
+
+- โ Miss contextually important but semantically distant information (e.g., health status affecting weekend plans)
+- โ Introduce retrieval noise due to suboptimal grouping- โ Fail to capture evolving user characteristics over time**o-mem** addresses these issues by rethinking memory as an **active user modeling process**, not just passive storage. Inspired by personal informatics theory, o-mem continuously extracts and updates:
+- ๐น **User Persona Attributes** (e.g., preferences, habits, life stage)
+- ๐น **Event Records** (e.g., recent job change, travel plans)
+- ๐น **Topic-Indexed Messages** (for contextual grounding)
+
+This enables **hierarchical, user-aware retrieval**: agents first reason about *who the user is*, then retrieve *what they said* โ leading to more coherent, adaptive, and personalized responses.
+
+
+
+
+## ๐ Key Featuresโ
**Dynamic User Profiling**> Automatically extract and update user attributes from ongoing interactions โ no manual annotation needed.
+
+โ
**Hierarchical Memory Structure**> Three-tier design:> - **Persona Layer**: Stable & evolving user traits> - **Event Layer**: Significant life/contextual events> - **Message Layer**: Topic-indexed raw dialog historyโ
**User-Centric Retrieval**> Retrieve based on *user state* first, then *topic relevance* โ reducing noise and improving coherence.
+
+โ
**Interaction-Time Scaling**> Memory grows and adapts with each interaction โ enabling true long-term personalization.
+
+โ
**Evaluation Suite Included**> Benchmark scripts for:> - Persona-based QA (LoCoMo)> - Response selection (PERSONAMEM)> - In-depth report generation (Personalized Deep Research Bench)
+
+โ
**Extensible & Modular**> Plug into any LLM agent pipeline via clean APIs. Easy to customize extraction rules or add new memory types.
+
+## ๐งฉ Architecture
+
+[Raw Interaction] โ[Memory Writer] โ [Extract: Attributes + Events]
+โ[Update: Dynamic User Profile]
+โ[Hierarchical Indexing]
+โ[Retriever] โ [Query: "What would this user care about?"]
+โ[Context-Aware Prompting] โ [LLM Agent]
+
+## ๐งฉProject Structure
+
+```
+memory_chain/
+โโโ __init__.py # Package exports
+โโโ memory.py # MemoryChain - main memory container
+โโโ memory_manager.py # MemoryManager - high-level API
+โโโ working_memory.py # Working Memory implementation
+โโโ episodic_memory.py # Episodic Memory implementation
+โโโ persona_memory.py # Persona Memory (active user profiling)
+โโโ prompts.py # LLM prompt templates
+โโโ utils.py # Utility functions
+
+example_usage.py # Usage examples
+config.yaml.example # Configuration template
+requirements.txt # Dependencies
+```
+
+## ๐ง Memory Types
+
+### Working Memory
+- **Purpose**: Short-term storage for recent conversation
+- **Capacity**: Fixed size queue (default: 20 messages)
+- **Behavior**: Oldest messages overflow to Episodic Memory
+
+### Episodic Memory
+- **Purpose**: Long-term storage for events and topics
+- **Features**:
+ - Topic clustering via semantic similarity
+ - Event-level and topic-level memories
+ - Attribute and fact extraction
+
+### Persona Memory
+- **Purpose**: Active user profiling and preferences
+- **Contents**:
+ - Preferences (likes, dislikes, interests)
+ - Attributes (personality traits, facts)
+ - Dynamically updated user characteristics
+
+## โ๏ธInstallation
+
+```bash
+
+# Install dependencies
+pip install -r requirements.txt
+
+# Copy and configure settings
+cp config.yaml.example config.yaml
+# Edit config.yaml with your OpenAI API key
+```
+
+## ๐Quick Start
+
+
+```bash
+# Run full example
+python example_usage.py
+
+# Run simplified example
+python example_usage.py simple
+
+#Run test experiments for locomo benchmark with different arguments
+python locomo_experiment_retrieval_optimize_ablation_study.py
+```
+
+## โ๏ธConfiguration
+
+Create a `config.yaml` file:
+
+```yaml
+model:
+ llm_model: "model name"
+ openai_api_key: "your-openai-api-key"
+ openai_base_url: "https://api.openai.com/v1"
+```
+
+## ๐งฉ Community Support Note
+
+We note that the performance of GPT-4.1 has recently degraded in preliminary observations, and the model is expected to be deprecated in the near future. Due to these changes, results obtained using GPT-4.1 may not be fully reproducible over time. For research purposes, especially for individuals or institutions with limited access to large language models, we are willing to share the original model outputs (e.g., inference logs, generated responses) upon request. We encourage careful interpretation of the experimental results in light of the evolving nature of commercial LLMs, and refer readers to the discussion in our technical report for guidance on result analysis and limitations.
+
+## ๐ Citation
+
+```
+@article{wang2025omni,
+ title={Omni Memory System for Personalized, Long Horizon, Self-Evolving Agents},
+ author={Wang, Piaohong and Tian, Motong and Li, Jiaxian and Liang, Yuan and Wang, Yuqing and Chen, Qianben and Wang, Tiannan and Lu, Zhicong and Ma, Jiawei and Jiang, Yuchen Eleanor and others},
+ journal={arXiv preprint arXiv:2511.13593},
+ year={2025}
+}
+```
+
+## ๐ Star
+
+
+
+[](https://github.com/OPPO-PersonalAI/O-Mem)
+
+