hermes - 💡(How to fix) Fix Issue: Hindsight 插件与 hindsight_embed 包 API 不兼容

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

The Hindsight memory plugin fails to start in Local Embedded mode due to an API mismatch between the plugin code and the hindsight_embed package.

Current behavior: When configuring Hindsight in Local Embedded mode, the daemon fails to start with:

ImportError: cannot import name 'HindsightEmbedded' from 'hindsight'

Root cause: The plugin code (plugins/memory/hindsight/__init__.py) attempts to import HindsightEmbedded:

# Line 898
from hindsight import HindsightEmbedded

However, hindsight_embed v0.7.2 exports different classes:

  • EmbedManager
  • DaemonEmbedManager

The hindsight package is just an alias that redirects to hindsight_embed:

# hindsight/__init__.py
from hindsight_embed import *

Expected behavior: The plugin should use the correct API classes (EmbedManager or DaemonEmbedManager) to work with the current version of hindsight_embed.

Error Message

ImportError: cannot import name 'HindsightEmbedded' from 'hindsight'

Root Cause

Root cause: The plugin code (plugins/memory/hindsight/__init__.py) attempts to import HindsightEmbedded:

# Line 898
from hindsight import HindsightEmbedded

Code Example

ImportError: cannot import name 'HindsightEmbedded' from 'hindsight'

---

# Line 898
from hindsight import HindsightEmbedded

---

# hindsight/__init__.py
from hindsight_embed import *

---

ImportError: cannot import name 'HindsightEmbedded' from 'hindsight'

---

# 第 898from hindsight import HindsightEmbedded

---

# hindsight/__init__.py
from hindsight_embed import *
RAW_BUFFERClick to expand / collapse

Issue: Hindsight 插件与 hindsight_embed 包 API 不兼容

English

Description

The Hindsight memory plugin fails to start in Local Embedded mode due to an API mismatch between the plugin code and the hindsight_embed package.

Current behavior: When configuring Hindsight in Local Embedded mode, the daemon fails to start with:

ImportError: cannot import name 'HindsightEmbedded' from 'hindsight'

Root cause: The plugin code (plugins/memory/hindsight/__init__.py) attempts to import HindsightEmbedded:

# Line 898
from hindsight import HindsightEmbedded

However, hindsight_embed v0.7.2 exports different classes:

  • EmbedManager
  • DaemonEmbedManager

The hindsight package is just an alias that redirects to hindsight_embed:

# hindsight/__init__.py
from hindsight_embed import *

Expected behavior: The plugin should use the correct API classes (EmbedManager or DaemonEmbedManager) to work with the current version of hindsight_embed.

Environment

  • OS: Windows 10
  • Hermes Agent: latest
  • hindsight_embed: 0.7.2
  • Python: 3.11

Suggested Fix

Update plugins/memory/hindsight/__init__.py to use the new API:

  • Replace HindsightEmbedded with EmbedManager or DaemonEmbedManager
  • Update related method calls if the API has changed

中文

描述

Hindsight 记忆插件在本地嵌入模式(Local Embedded)下无法启动,原因是插件代码与 hindsight_embed 包的 API 不兼容。

当前行为: 配置 Hindsight 为本地嵌入模式后,守护进程启动失败,报错:

ImportError: cannot import name 'HindsightEmbedded' from 'hindsight'

根本原因: 插件代码 (plugins/memory/hindsight/__init__.py) 尝试导入 HindsightEmbedded

# 第 898 行
from hindsight import HindsightEmbedded

hindsight_embed v0.7.2 导出的是不同的类:

  • EmbedManager
  • DaemonEmbedManager

hindsight 包只是一个别名,重定向到 hindsight_embed

# hindsight/__init__.py
from hindsight_embed import *

期望行为: 插件应该使用正确的 API 类(EmbedManagerDaemonEmbedManager)来适配当前版本的 hindsight_embed

环境信息

  • 操作系统:Windows 10
  • Hermes Agent:最新版本
  • hindsight_embed:0.7.2
  • Python:3.11

建议修复方案

更新 plugins/memory/hindsight/__init__.py 以使用新的 API:

  • HindsightEmbedded 替换为 EmbedManagerDaemonEmbedManager
  • 如果 API 有变化,同步更新相关方法调用

Additional Context / 补充说明

This issue prevents users from using Hindsight's local embedded mode, forcing them to either:

  1. Use Cloud mode (requires API key)
  2. Set up a local external server (more complex)
  3. Switch to other memory providers like Holographic

此问题导致用户无法使用 Hindsight 的本地嵌入模式,只能:

  1. 使用云端模式(需要 API key)
  2. 部署本地外部服务器(更复杂)
  3. 切换到其他记忆提供者(如 Holographic)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING