AI资讯大全AIPPXP.CN搜索 ↗
工具介绍 · 附下载文件

Hindsight v0.10.2: Long-term memory that lets your agent actually learnHindsight v0.10.2:给智能体一套会「学」的长期记忆

One of the fastest-rising memory systems today, around 43,500 stars. It stores facts, entity relationships and temporal reasoning in PostgreSQL plus pgvector, so an agent remembers people, events and time, and forms opinions under configurable disposition traits. One docker run starts the service, and an MCP endpoint comes built in.

当天涨星最猛的记忆系统之一,约 4.35 万 Star。它把事实、实体关系和时序推理存进 PostgreSQL + pgvector:智能体能记住人、事、时间,还能按可配置的性格倾向形成判断。一条 docker run 起服务,自带 MCP 端点。

2026-09-30 更新 · 免费
Hindsight v0.10.2:给智能体一套会「学」的长期记忆

How it differs from a plain vector store它和普通向量库差在哪

Ordinary vector libraries only do "look for similar sentences". Hindsight breaks down memory into three layers: world facts (what the world is like), empirical facts (what the agent has done itself), observations (the judgments it derives from them), and then overlays an entity relationship diagram to connect people, projects, and events.

The retrieval uses TEMPR multi-strategy fusion: semantic retrieval, keyword retrieval, graph retrieval, and timing retrieval. The four results are sorted by RRF merging, so the time-bound question "What happened last spring?" can also be hit.

There is also a rare ability called disposition traits: the degree of suspicion, literalism, and empathy can be configured, which directly affects the way it forms opinions. Writing assistants and reviewers need two different personality settings.

中文

普通向量库只做「找相似的句子」。Hindsight 把记忆拆成三层结构:世界事实(世界是怎样的)、经验事实(智能体自己做过什么)、观察(它从中得出的判断),再叠一张实体关系图,把人物、项目、事件连起来。

检索用的是 TEMPR 多策略融合:语义检索、关键词检索、图检索、时序检索四路结果用 RRF 合并排序,所以「去年春天发生了什么」这种带时间的问法也能命中。

还有一项少见的能力叫 disposition traits(性格倾向):怀疑程度、字面程度、共情程度可以配置,直接影响它形成观点的方式。写助手和写审稿人,需要的就是两套不同的性格设定。

它和普通向量库差在哪

Three ways to run it: Docker, pip, MCP三种跑法:Docker、pip、MCP

Docker is the most convenient: docker run -it --name hindsight --restart unless-stopped -p 8888: 8888 -p 9999: 9999 -v hindsight-data:/home/hindsight/.pg0 ghcr.io/vectorize-io/hindsight: latest, service from 8888, built-in PostgreSQL, data falls on the data volume.

To install hindsight-api into an existing Python environment, pip install hindsight-api, and set hindsight_API_LLM_provider and hindsight_API_LLM_API_key to run hindsight-api directly. The LLM provider supports openai, anthropic, gemini, groq, ollama, lmstudio, github-copilot, and the model defaults to gpt-4o-mini.

MCP is already built-in: the service endpoint http://localhost: 8888/mcp/{bank_id}/, which directly exposes the three actions of retain, recall, and reflect as tools for any MCP client; if you don't want to think of the full service, there is also the hindsight-local-mcp version of stdio.

The diagram is a schematic diagram of the official memory architecture (retain/recall/reflect three links).

中文

Docker 是最省事的:docker run -it --name hindsight --restart unless-stopped -p 8888:8888 -p 9999:9999 -v hindsight-data:/home/hindsight/.pg0 ghcr.io/vectorize-io/hindsight:latest,服务起在 8888,内置 PostgreSQL,数据落在数据卷里。

想装进现有 Python 环境就 pip install hindsight-api,然后设好 HINDSIGHT_API_LLM_PROVIDER 和 HINDSIGHT_API_LLM_API_KEY 直接运行 hindsight-api。LLM provider 支持 openai、anthropic、gemini、groq、ollama、lmstudio、github-copilot,模型默认 gpt-4o-mini。

MCP 已经内置:服务端点 http://localhost:8888/mcp/{bank_id}/,把 retain、recall、reflect 三个动作直接暴露成工具给任何 MCP 客户端用;不想起完整服务的话,还有 stdio 版的 hindsight-local-mcp。

配图是官方的记忆架构示意图(retain / recall / reflect 三条链路)。

三种跑法:Docker、pip、MCP

Wiring it into your coding agent接进编程智能体

The official command for one-click access to programming agents is provided: npx @ vectorize-io/hindsight-coding-agents install all installed agents and connect them one by one; use npx @ vectorize-io/hindsight-coding-agents install claude-code only to connect Claude Code.

After receiving it, the preferences, project conventions, and pits that you talked about in the previous session will be automatically brought back to the next session - the biggest difference between it and "explain it from zero every time you open a new window".

中文

官方提供了一键接入编程智能体的命令:npx @vectorize-io/hindsight-coding-agents install all 会检测所有已安装的智能体并逐个接好;只接 Claude Code 就用 npx @vectorize-io/hindsight-coding-agents install claude-code。

接好之后,你上一个会话里讲过的偏好、项目约定、踩过的坑,下一个会话会被自动带回来——这是它和「每次开新窗口都从零解释一遍」最大的区别。

Download instructions下载说明

The download button provides the official PyPI sdist package hindsight_api_slim 0.10.2 (about 1.77 MB), corresponding to v0.10.2 released in release 2026-09-29.

Local installation: pip install./hindsight-api-slim-0.10.2.tar.gz. The slim version removes the bulky optional dependencies and is suitable for self-built servers; just write the client and install hindsight-client.

there are also separate executables for Linux and macOS in the release, but Windows binaries are not officially available. Windows users should take the Python or Docker route.

中文

下载按钮提供官方 PyPI sdist 包 hindsight_api_slim 0.10.2(约 1.77MB),对应 release 里 2026-09-29 发布的 v0.10.2。

本地安装:pip install ./hindsight-api-slim-0.10.2.tar.gz。slim 版拆掉了体积大的可选依赖,适合自建服务端;只写客户端就装 hindsight-client。

release 里还有 Linux 与 macOS 的独立可执行文件,但官方没有提供 Windows 版二进制,Windows 用户请走 Python 或 Docker 路线。

Notes使用提醒

This article is compiled from public sources and ships with the matching resource. Product features and pricing are subject to the official page. Resources are for learning and exchange only — please respect the original license.

中文

本文整理自公开资料并附上配套资源;涉及产品的功能与价格以官方页面为准。资源仅供学习交流,请遵循来源许可。

资源下载 · Download

⬇ Download · 点击下载:Hindsight API v0.10.2 官方 PyPI 源码包(约 1.77 MB)

来自 vectorize-io/hindsight v0.10.2 release 的 PyPI sdist(hindsight_api_slim)

0阅读0 条评论

阅读与点赞数据保存在你的浏览器本地,欢迎留下你的想法。

评论 文明发言,让讨论更有价值

正能量公益广告今日正能量学一点,用一点;今天种下的种子,会长成明天的能力。去免费下载专区 →广告