🧠 Thought-Retriever

Don't Just Retrieve Raw Data β€” Retrieve Thoughts

A self-evolving long-term memory system for LLM-based agents, based on the paper by UIUC, MIT & CMU (TMLR 2026).

v2.0.0 β€” Chinese Optimization

Quick Install

pip install numpy jieba
git clone https://github.com/mhx0628/thought-retriever

Quick Start

from thought_retriever import ThoughtMemory, ThoughtConfig

config = ThoughtConfig(project_path=".", language="zh")
memory = ThoughtMemory(config=config)

memory.add_knowledge("小明今年10ε²οΌŒε–œζ¬’η”»η”»ε’ŒθΈ’θΆ³ηƒ")
results = memory.retrieve("ε°ζ˜Žε–œζ¬’δ»€δΉˆ")

Key Features

Links