返回顶部
e

eidolon-search灵体搜索

AI Agent memory search using SQLite FTS5. 90%+ token reduction (10x+) compared to reading full files. Use when the agent needs to search through markdown memory files, daily notes, or any text corpus efficiently. Triggers on memory search, file search, knowledge retrieval, or when context window is limited and full-file reading is too expensive.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.0.1
安全检测
已通过
297
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

eidolon-search

Eidolon Search

基于FTS5的AI智能体记忆搜索。一次性索引Markdown文件,搜索时可节省90%以上的token消耗。

快速开始

1. 索引记忆文件(一次性操作)

bash
python3 scripts/build-index.py <记忆目录> <数据库路径>

示例:
bash
python3 scripts/build-index.py ./memory ./memory.db

该命令会创建一个SQLite数据库,其中包含目录下所有.md文件的FTS5全文索引(递归处理)。

2. 搜索

bash
python3 scripts/search.py <查询内容> [返回数量] [数据库路径]

示例:
bash
python3 scripts/search.py Physical AI路线图 5
python3 scripts/search.py 项目时间线 10 ./memory.db

默认返回数量:10。默认数据库路径:./memory.db

输出:匹配的代码片段及其文件路径和相关性评分。

3. 文件变更后重新索引

重新运行build-index.py即可。它会从头重建索引(速度很快,典型工作空间耗时<1秒)。

适用场景

  • - 记忆搜索:在大量日常笔记或记忆文件中查找特定信息
  • token限制场景:当读取所有文件会超出上下文限制时
  • 重复搜索:一次索引,多次搜索
  • 大型工作空间:10个以上Markdown文件,累计大小超过50KB

不适用场景

  • - 单个小文件(<5KB):直接读取即可
  • 需要语义/含义搜索:FTS5仅支持关键词搜索
  • 已知限制请参见references/QUALITY.md

智能体搜索技巧

FTS5基于关键词。通过以下方式提升搜索结果:

  • - 使用具体术语:使用Jetson Orin而非硬件计划
  • 使用OR连接同义词:car OR vehicle OR automobile
  • 使用引号搜索短语:Physical AI
  • 首次搜索无结果时尝试多个查询
  • 查看结果中的文件路径,必要时读取完整上下文

性能基准

自行运行基准测试:
bash
python3 scripts/benchmark-recall.py # Recall@5, Recall@10
python3 scripts/benchmark-cache.py # 热缓存与冷缓存对比

数据库结构

sql
CREATE VIRTUAL TABLE memory_fts USING fts5(path, content);

直接SQL访问:
bash
sqlite3 memory.db SELECT path, snippet(memoryfts, 1, , , ..., 32) FROM memoryfts WHERE memory_fts MATCH query ORDER BY rank LIMIT 5;

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 eidolon-search-1776207510 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 eidolon-search-1776207510 技能

通过命令行安装

skillhub install eidolon-search-1776207510

下载

⬇ 下载 eidolon-search v0.0.1(免费)

文件大小: 11.34 KB | 发布时间: 2026-4-15 12:45

v0.0.1 最新 2026-4-15 12:45
- Initial release of eidolon-search: efficient AI agent memory search using SQLite FTS5.
- Enables building a full-text search index over markdown files with 90%+ token reduction compared to reading files directly.
- Command-line tools provided for indexing (`build-index.py`) and searching (`search.py`) memory files.
- Designed for fast, low-cost retrieval in large or context-limited workspaces.
- Best used for keyword-based memory or knowledge searches; not suitable for semantic search.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部