knowledge-rag
by lyonzin·★ 79·综合分 48
Knowledge RAG 是一个本地优先的检索增强生成系统,提供 12 个 MCP 工具,支持 20+ 种文件格式的文档搜索和检索。
概述
Knowledge RAG 是一个完整的本地优先检索增强生成系统,能够在不依赖任何外部服务器或 API 密钥的情况下,即时搜索各种格式的文档。它实现了混合搜索,结合 BM25 关键词搜索、语义向量和交叉编码器重排序,以提供高精度结果。该系统使用 Python 和 FastMCP 框架构建,提供 12 个 MCP 工具,用于完整的 CRUD 操作、搜索、评估和文档管理。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
选择它用于本地优先的文档搜索,当您需要隐私、无网络连接或想避免API费用时。
什么时候不要选它
避免使用此工具,如果您需要实时协作功能或需要搜索存储在云服务中的文档。
此 server 暴露的工具
从 README 抽取出 11 个工具searchquery: strSearch through indexed documents using hybrid search with semantic and keyword matching
getdoc_id: strRetrieve a specific document by its ID
addpath: strAdd a new document to the index
updatepath: strUpdate an existing document in the index
removepath: strRemove a document from the index
reindexRebuild the entire index from scratch
listList all documents in the index
statsGet statistics about the index
urlurl: strIndex content from a web URL
similardoc_id: strFind documents similar to a reference document
evaluateEvaluate retrieval performance with MRR@5 and Recall@5 metrics
可对比工具
安装
通过 pip 安装 knowledge-rag:
pip install knowledge-rag对于 Claude Desktop,添加到你的 claude_desktop_config.json 中:
{
"mcpServers": {
"knowledge-rag": {
"command": "python",
"args": ["-m", "knowledge_rag.server"],
"env": {}
}
}
}也通过 NPM、Docker 和单行安装程序提供。
FAQ
- 支持哪些文件格式?
- Knowledge RAG 支持 20+ 种格式,包括 PDF、Markdown、Python 代码、Word 文档、Excel 文件、Jupyter 笔记本以及各种编程语言(C++、JavaScript、TypeScript 等)。
- 它是否真的完全本地运行,没有云依赖?
- 是的,所有处理都通过 ONNX 在本地运行。无需服务器、API 密钥,数据也不会离开您的机器。
Hacker News 讨论
开发者社区最近的相关讨论。
- 帖子 by lyonzin · 2026-03-19
knowledge-rag 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。