专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题轩辕镜像免费版
其他
关于我们网站地图
热门搜索:
ghcr.io/vectorize-io/hindsight-api

ghcr.io/vectorize-io/hindsight-api:0.4.22

ghcr.io
ghcr.iolinux/amd640.4.22大小: 未知更新于 2026年5月2日

什么是 Hindsight?

Hindsight™ 是一个代理记忆系统,旨在创建能够随时间学习的更智能代理。大多数代理记忆系统专注于回忆对话历史,而 Hindsight 则专注于让代理学习,而非仅仅记忆。

它消除了 RAG 和知识图谱等替代技术的缺点,并在长期记忆任务上提供最先进的性能。

记忆性能与准确性

根据基准测试性能,Hindsight 是迄今为止测试过的最准确的代理记忆系统。它在 LongMemEval 基准测试中取得了最先进的性能,该基准广泛用于评估各种对话式 AI 场景下的记忆系统性能。截至 2026 年 1 月,Hindsight 和其他代理记忆解决方案的当前报告性能如下:

Hindsight 的基准性能数据已由弗吉尼亚理工大学桑哈尼人工智能与数据分析中心和《华盛顿邮报》的研究合作者独立复现。其他分数由软件供应商自行报告。

Hindsight 已在财富 500 强企业的生产环境中使用,并被越来越多的 AI 初创公司采用。

将 Hindsight 添加到您的 AI 代理中

将 Hindsight 与现有代理结合使用的最简单方法是通过 LLM Wrapper。您只需 2 行代码即可为代理添加记忆功能。这将用 Hindsight 包装器替换您当前的 LLM 客户端。之后,在进行 LLM 调用时,记忆将自动存储和检索。

如果您需要更精确地控制代理存储和回忆记忆的方式与时机,还可以通过 SDK 或直接通过 HTTP 集成简单的 API。


🤖 正在使用编码代理? 安装 Hindsight 文档技能,以便在编码时即时访问文档:

> npx skills add https://github.com/vectorize-io/hindsight --skill hindsight-docs
>

适用于 Claude Code、Cursor 和其他 AI 编码助手。


快速开始

Docker(推荐)

export OPENAI_API_KEY=sk-xxx

docker run --rm -it --pull always -p 8888:8888 -p 9999:9999 \
-e HINDSIGHT_API_LLM_API_KEY=$OPENAI_API_KEY \
-v $HOME/.hindsight-docker:/home/hindsight/.pg0 \
ghcr.io/vectorize-io/hindsight:latest

API: http://localhost:8888 UI: http://localhost:9999

您可以通过设置 HINDSIGHT_API_LLM_PROVIDER 修改 LLM 提供商。有效选项包括 openai、anthropic、gemini、groq、ollama、lmstudio 和 minimax。文档提供了有关支持模型的更多详细信息。

Docker(外部 PostgreSQL)

export OPENAI_API_KEY=sk-xxx
export HINDSIGHT_DB_PASSWORD=choose-a-password
cd docker/docker-compose
docker compose up

Oracle AI Database 也支持企业部署,具有完整的功能对等性。有关详细信息,请参阅存储文档。

API: http://localhost:8888 UI: http://localhost:9999

客户端

pip install hindsight-client -U
# 或
npm install @vectorize-io/hindsight-client

Python

from hindsight_client import Hindsight

client = Hindsight(base_url="http://localhost:8888")

# Retain: 存储信息
client.retain(bank_id="my-bank", content="Alice works at Google as a software engineer")

# Recall: 搜索记忆
client.recall(bank_id="my-bank", query="What does Alice do?")

# Reflect: 生成情境感知响应
client.reflect(bank_id="my-bank", query="Tell me about Alice")

Node.js / TypeScript

npm install @vectorize-io/hindsight-client
const { HindsightClient } = require('@vectorize-io/hindsight-client');

const main = async () => {
const client = new HindsightClient({ baseUrl: 'http://localhost:8888' });

await client.retain('my-bank', 'Alice loves hiking in Yosemite');

const results = await client.recall('my-bank', 'What does Alice like?');
console.log(results);
}

main();

Python 嵌入式(无需服务器)

pip install hindsight-all -U
import os
from hindsight import HindsightServer, HindsightClient

with HindsightServer(
llm_provider="openai",
llm_model="gpt-5-mini",
llm_api_key=os.environ["OPENAI_API_KEY"]
) as server:
client = HindsightClient(base_url=server.url)
client.retain(bank_id="my-bank", content="Alice works at Google")
results = client.recall(bank_id="my-bank", query="Where does Alice work?")

使用场景

Hindsight 旨在支持对话式 AI 代理以及旨在自主执行任务的代理。Hindsight 的理想使用场景是需要融合以下功能的代理:例如 AI 员工,他们需要处理开放式任务、根据用户反馈改变行为,并学习执行复杂任务以实现接近人类水平的工作自动化。Hindsight 可用于简单的 AI 工作流(如使用 n8n 和其他类似工具构建的工作流),但对此类应用可能过于复杂。

每用户记忆和聊天历史

Hindsight 最简单的使用场景之一是通过存储和回忆与单个用户相关的记忆,实现 AI 聊天机器人和其他对话代理的个性化。

此场景的需求通常如下:

在 Hindsight 中满足这些需求非常简单。当使用 retain 操作将新的用户输入和工具调用摄入 Hindsight 时,可以使用自定义元数据丰富新记忆。元数据提供了一种便捷的方式来隔离需要限制给特定用户的记忆。一旦这些记忆被输入 retain 操作,在检索相关记忆时,任何创建的原始记忆和心智模型都可以被过滤。


架构与操作

大多数代理记忆实现依赖于基本的向量搜索,有时也使用知识图谱。Hindsight 使用仿生数据结构来组织代理记忆,其方式更接近人类记忆的工作原理:

  • World(世界):关于世界的事实(“炉子会变热”)
  • Experiences(经验):代理自身的经历(“我碰了炉子,真的很烫”)
  • Mental Models(心智模型):通过反思原始记忆和经验形成的对代理世界的习得理解。

Hindsight 中的记忆存储在“banks”(即记忆库)中。当记忆添加到 Hindsight 时,它们会被推入世界事实或经验记忆路径。然后,它们被表示为实体、关系和时间序列的组合,并带有稀疏/密集向量表示,以辅助后续回忆。

Hindsight 提供三种简单的方法与系统交互:

  • Retain(保留):向 Hindsight 提供您希望它记住的信息
  • Recall(回忆):从 Hindsight 检索记忆
  • Reflect(反思):反思记忆和经验,从现有记忆中生成新的观察和见解。

Retain

retain 操作用于将新记忆推入 Hindsight。它告诉 Hindsight 保留 您作为输入传递的信息。

from hindsight_client import Hindsight

client = Hindsight(base_url="http://localhost:8888")

# 简单示例
client.retain(
bank_id="my-bank",
content="Alice works at Google as a software engineer"
)

# 带上下文和时间戳
client.retain(
bank_id="my-bank",
content="Alice got promoted to senior engineer",
context="career update",
timestamp="2025-06-15T10:00:00Z"
)

在幕后,retain 操作使用 LLM 提取关键事实、时间数据、实体和关系。它通过规范化过程将提取的数据转换为规范实体、时间序列、搜索索引以及元数据。这些表示为 recall 和 reflect 操作中的准确记忆检索创建了路径。

Recall

recall 操作用于检索记忆。这些记忆可以来自任何记忆类型(世界、经验等)。

from hindsight_client import Hindsight

client = Hindsight(base_url="http://localhost:8888")

# 简单示例
client.recall(bank_id="my-bank", query="What does Alice do?")

# 时间相关
client.recall(bank_id="my-bank", query="What happened in June?")

Recall 并行执行 4 种检索策略:

  • 语义:向量相似度
  • 关键词:BM25 精确匹配
  • 图谱:实体/时间/因果链接
  • 时间:时间范围过滤

检索的各个结果被合并,然后使用 reciprocal rank fusion 和交叉编码器重排序模型按相关性排序。

最终输出会根据需要进行裁剪,以适应 token 限制。

Reflect

reflect 操作用于对现有记忆进行更深入的分析。这使代理能够在记忆之间形成新的联系,并构建对其世界更全面的理解。

例如,reflect 操作可用于支持以下场景:

  • AI 项目经理 反思项目中需要缓解的风险。
  • 销售代理 反思为什么某些外展消息得到了回应,而其他消息没有。
  • 支持代理 反思客户提出的当前产品文档未回答的问题的机会。

reflect 操作还可用于处理需要更深入思考的按需问答或分析。

from hindsight_client import Hindsight

client = Hindsight(base_url="http://localhost:8888")

client.reflect(bank_id="my-bank", query="What should I know about Alice?")

资源

文档:

  • [***]

客户端:

  • Python
  • Node.js
  • REST API
  • CLI

社区:

  • Slack
  • https://github.com/vectorize-io/hindsight/issues

Star History


贡献

参见 CONTRIBUTING.md。

许可证

MIT — 参见 LICENSE


由 Vectorize.io 构建

拉取命令

轩辕镜像通过轩辕镜像拉取

专属域名未获取到

请登录使用轩辕镜像享受快速拉取体验,支持国内访问优化,速度提升

🚀 国内优化⚡ 访问优化🔒 安全可靠
原始仓库从原始仓库拉取镜像
docker pull ghcr.io/vectorize-io/hindsight-api:0.4.22

更多版本

共 49 个版本
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.5.6-slim
0.5.6-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.5.0
0.5.0ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.5.1-slim
0.5.1-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.5.4
0.5.4ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.20
0.4.20ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.5.3
0.5.3ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.9
0.4.9ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:latest
latestghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.5.2
0.5.2ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.5.1
0.5.1ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.5.3-slim
0.5.3-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.20-slim
0.4.20-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.5.4-slim
0.5.4-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.19
0.4.19ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.22-slim
0.4.22-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.5.0-slim
0.5.0-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.21-slim
0.4.21-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.21
0.4.21ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.5.2-slim
0.5.2-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.19-slim
0.4.19-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.18
0.4.18ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.18-slim
0.4.18-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.17
0.4.17ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.14
0.4.14ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.10
0.4.10ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.15-slim
0.4.15-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.7
0.4.7ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.15
0.4.15ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.10-slim
0.4.10-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.8
0.4.8ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.17-slim
0.4.17-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.13
0.4.13ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.11
0.4.11ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.14-slim
0.4.14-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.16
0.4.16ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.13-slim
0.4.13-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.16-slim
0.4.16-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.12
0.4.12ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.12-slim
0.4.12-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.11-slim
0.4.11-slimghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.6
0.4.6ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.5
0.4.5ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.4
0.4.4ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.3
0.4.3ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.2
0.4.2ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.1
0.4.1ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.4.0
0.4.0ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.5.5
0.5.5ghcr.iolinux/amd64
ghcr.io/vectorize-io/hindsight-api
ghcr.io/vectorize-io/hindsight-api:0.5.5-slim
0.5.5-slimghcr.iolinux/amd64

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

Docker 配置

登录仓库拉取

通过 Docker 登录认证访问私有仓库

专属域名拉取

无需登录使用专属域名

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

Harbor 镜像源配置

Harbor Proxy Repository 对接专属域名

Portainer 镜像源配置

Portainer Registries 加速拉取

Nexus 镜像源配置

Nexus3 Docker Proxy 内网缓存

系统配置

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

MacOS OrbStack

MacOS OrbStack 容器配置

Docker Compose

Docker Compose 项目配置

NAS 设备

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

极空间

极空间 NAS 系统配置服务

网络设备

爱快路由

爱快 iKuai 路由系统配置

宝塔面板

在宝塔面板一键配置镜像

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

使用与功能问题

配置了专属域名后,docker search 为什么会报错?

docker search 限制

Docker Hub 上有的镜像,为什么在轩辕镜像网站搜不到?

站内搜不到镜像

机器不能直连外网时,怎么用 docker save / load 迁镜像?

离线 save/load

docker pull 拉插件报错(plugin v1+json)怎么办?

插件要用 plugin install

WSL 里 Docker 拉镜像特别慢,怎么排查和优化?

WSL 拉取慢

轩辕镜像安全吗?如何用 digest 校验镜像没被篡改?

安全与 digest

第一次用轩辕镜像拉 Docker 镜像,要怎么登录和配置?

新手拉取配置

轩辕镜像合规吗?轩辕镜像的合规是怎么做的?

镜像合规机制

错误码与失败问题

docker pull 提示 manifest unknown 怎么办?

manifest unknown

docker pull 提示 no matching manifest 怎么办?

no matching manifest(架构)

镜像已拉取完成,却提示 invalid tar header 或 failed to register layer 怎么办?

invalid tar header(解压)

Docker pull 时 HTTPS / TLS 证书验证失败怎么办?

TLS 证书失败

Docker pull 时 DNS 解析超时或连不上仓库怎么办?

DNS 超时

docker 无法连接轩辕镜像域名怎么办?

域名连通性排查

Docker 拉取出现 410 Gone 怎么办?

410 Gone 排查

出现 402 或「流量用尽」提示怎么办?

402 与流量用尽

Docker 拉取提示 UNAUTHORIZED(401)怎么办?

401 认证失败

遇到 429 Too Many Requests(请求太频繁)怎么办?

429 限流

docker login 提示 Cannot autolaunch D-Bus,还算登录成功吗?

D-Bus 凭证提示

为什么会出现「单层超过 20GB」或 413,无法加速拉取?

413 与超大单层

账号 / 计费 / 权限

轩辕镜像免费版和专业版有什么区别?

免费版与专业版区别

轩辕镜像支持哪些 Docker 镜像仓库?

支持的镜像仓库

镜像拉取失败还会不会扣流量?

失败是否计费

麒麟 V10 / 统信 UOS 提示 KYSEC 权限不够怎么办?

KYSEC 拦截脚本

如何在轩辕镜像申请开具发票?

申请开票

怎么修改轩辕镜像的网站登录和仓库登录密码?

修改登录密码

如何注销轩辕镜像账户?要注意什么?

注销账户

配置与原理类

写了 registry-mirrors,为什么还是走官方或仍然报错?

mirrors 不生效

怎么用 docker tag 去掉镜像名里的轩辕域名前缀?

去掉域名前缀

如何拉取指定 CPU 架构的镜像(如 ARM64、AMD64)?

指定架构拉取

用轩辕镜像拉镜像时快时慢,常见原因有哪些?

拉取速度原因

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
ghcr.io/vectorize-io/hindsight-api
博客Docker 镜像公告与技术博客
热门查看热门 Docker 镜像推荐
安装一键安装 Docker 并配置镜像源
镜像拉取问题咨询请 提交工单,官方技术交流群:1072982923。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
镜像拉取问题咨询请提交工单,官方技术交流群:。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
商务合作:点击复制邮箱
©2024-2026 源码跳动
商务合作:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.