Hindsight 係 Vectorize.io 出嘅 agent memory system,用仿生數據結構組織記憶(World / Experiences / Mental Models),唔止 recall 對話歷史,而係令 agent 真正「學習」。LongMemEval benchmark SOTA。
Retain → LLM 抽取事實/實體/關係/時間 → Normalization → Memory Banks
Recall → 4 種策略並行 → Reciprocal Rank Fusion + Cross-Encoder Reranking → Top-K
Reflect → 深度分析 → 新嘅 Mental Models
三種記憶類型: 1. World — 關於世界嘅事實(「 stove 會好熱」) 2. Experiences — Agent 自己嘅經驗(「我掂過 stove,好痛」) 3. Mental Models — 透過反思形成嘅理解同洞察
LongMemEval benchmark SOTA(截至 2026 年 1 月): - 獨立驗證:Virginia Tech Sanghani Center + The Washington Post - Fortune 500 + AI startups 生產環境使用
| 維度 | Traditional RAG | GraphRAG | SAG | Hindsight |
|---|---|---|---|---|
| 記憶類型 | 文档 chunks | 知識圖譜 | 事件+實體 | World/Experiences/Mental Models |
| 檢索方式 | 向量模糊 | 圖遍歷 | SQL JOIN 動態構建 | 4 策略並行 + Reranking |
| 學習能力 | 無 | 無 | 無 | 有(Reflect 操作) |
| 增量更新 | 簡單 | 難 | 簡單 | 簡單 |
| 構建成本 | 低 | 高 | 中 | 高(需要 LLM API) |
| 生產就緒 | 是 | 是 | 否(單用戶) | 是(Fortune 500) |
Docker(推薦):
docker run -it --pull always --name hindsight --restart unless-stopped -p 8888:8888 -p 9999:9999 \
-e HINDSIGHT_API_LLM_API_KEY=*** \
-v hindsight-data:/home/hindsight/.pg0 \
ghcr.io/vectorize-io/hindsight:latest
支持嘅 LLM providers: OpenAI, Anthropic, Gemini, Groq, Ollama, LMStudio, MiniMax, Atlas
存儲: 內嵌 pg0(PostgreSQL)或外部 PostgreSQL / Oracle AI Database
Client SDK: Python (hindsight-client)、Node.js (@vectorize-io/hindsight-client)、REST API、CLI
SAG Warm Memory 計劃: - SAG 同 Hindsight 都解決 agent memory 問題,但方法唔同 - SAG 用 SQL JOIN 動態構建關係,Hindsight 用仿生結構 + 多策略檢索 - 兩者都需要 LLM API key,我哋 VPS 暫時冇
Hermes Memory 架構: - 當前:MEMORY.md(hot)+ state.db FTS5(cold) - V1 計劃:SQLite FTS5 warm memory(無需外部依賴) - V2 方向:SAG 或 Hindsight(需要 API key)