FA

flowing-abyss/obsidian-hybrid-search

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

127 stars 23 forks 质量 84 趋势 21MIT

flowing-abyss/obsidian-hybrid-search 是从 https://github.com/flowing-abyss/obsidian-hybrid-search. 导入的 MCP 服务器候选

概览

flowing-abyss/obsidian-hybrid-search 是从 https://github.com/flowing-abyss/obsidian-hybrid-search. 导入的 MCP 服务器候选

概述(AI 翻译)

你的Obsidian保险库已经包含了你最优秀的思考。Obsidian混合搜索让这些思维更容易被发现、重用,并融入AI辅助的工作中。

它为你的保险库提供了一个检索引擎和三种实用的使用方式。原生的 [Obsidian 插件][obsidian-plugin] 在你写作时提供快速搜索、预览、类似笔记、链接发现和图表视图。MCP 服务器允许 AI 代理通过工具调用搜索和读取你的笔记。CLI 为高级用户提供了相同的搜索引擎,用于索引、过滤、重新排序、读取和脚本编写。

该搜索理解真实保险库的构建方式。它结合了语义搜索、BM25全文、模糊标题和别名匹配、标签、文件夹、前置信息、维基链接、反向链接以及类似注释查找。你可以按想法、短语、标题、关系或元数据搜索,而不必记住你写的确切词汇。

这使Obsidian成为更强大的个人知识系统,也是AI工作的更好起点。代理可以从你的笔记开始,从源文件中提取引用上下文,跟踪相关材料,并处理你已经信任的知识。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Obsidian Hybrid Search

Your Obsidian vault already contains your best thinking. Obsidian Hybrid Search makes that thinking easier to find, reuse, and bring into AI-assisted work.

It gives your vault one retrieval engine and three practical ways to use it. The native [Obsidian plugin][obsidian-plugin] gives you fast search, previews, similar notes, link discovery, and graph views while you write. The MCP server lets AI agents search and read your notes as tool calls. The CLI gives power users the same engine for indexing, filtering, reranking, reading, and scripting.

The search understands how real vaults are built. It combines semantic search, BM25 full text, fuzzy title and alias matching, tags, folders, frontmatter, wikilinks, backlinks, and similar-note lookup. You can search by idea, phrase, title, relationship, or metadata without remembering the exact words you wrote.

That turns Obsidian into a stronger personal knowledge system and a better starting point for AI work. Agents can begin from your own notes, pull cited context from source files, follow related material, and work with knowledge you already trust. OHS runs locally by default with SQLite, FTS5, sqlite-vec, RRF ranking, and optional OpenAI-compatible embedding APIs.

Search quality

Evaluated on the Obsidian Help vault (171 notes, 58 queries, local models):

Configuration nDCG@5 ↑ MRR ↑ Hit@1 ↑ Avg query (ms) ↓ Model download ↓
OHS Qwen, rerank ¹ 0.812 0.857 79.3% 730 ~980 MB
OHS Qwen, hybrid ¹ 0.802 0.856 81.0% 38 ~639 MB
OHS default, rerank ² 0.779 0.837 77.6% 718 ~458 MB
OHS default, hybrid ² 0.743 0.799 72.4% 8 ~117 MB
QMD, rerank ³ 0.727 0.735 60.3% 12,308 ~973 MB
在 GitHub 查看完整 README

安装

npx -y -p obsidian-hybrid-search@latest obsidian-hybrid-search-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "obsidian-hybrid-search": { "command": "npx", "args": ["-y", "-p", "obsidian-hybrid-search@latest", "obsidian-hybrid-search-mcp"], "env": { "OBSIDIAN_VAULT_PATH": "/path/to/your/vault" } } } }