用途:对文本文件和文档建立本地索引,并提供搜索与摘要能力。
主要能力:索引文本文件与文档;全文搜索;提取关键词;对文档分类;生成文档摘要。
使用方式(命令保持原样): 索引文档:/job/.pi/skills/document-indexer/index-add.js /path/to/file.txt "Category" 搜索文档:/job/.pi/skills/document-indexer/index-search.js "search query" 列出已索引文档:/job/.pi/skills/document-indexer/index-list.js 从索引删除:/job/.pi/skills/document-indexer/index-remove.js document-id 获取文档摘要:/job/.pi/skills/document-indexer/index-summarize.js document-id
配置:索引存储在 /tmp/document-index.jsonl。
灵感来源:ZeroClaw 使用 FTS5 的 SQLite 混合搜索;OpenClaw 的 Markdown 文件记忆后端。
限制:资料未说明支持的文件格式范围、索引容量、性能、权限模型、依赖环境或安装步骤,暂未提供。