Initial commit: LLM Wiki with raw and wiki folders only

This commit is contained in:
2026-04-07 21:10:43 +08:00
commit 80bc593b36
25 changed files with 2996 additions and 0 deletions

51
wiki/qmd.md Normal file
View File

@@ -0,0 +1,51 @@
---
categories:
- "[[LLM Wiki]]"
tags:
- wiki
- tool
- search
- 知识管理/工具
created: 2026-04-07
source: "[[llm-wiki]]"
type: tool
aliases:
- qmd search
---
# qmd
> **qmd** 是一个本地 Markdown 文件搜索引擎,支持混合 BM25/向量搜索和 LLM 重排序,适用于 [[LLM Wiki]] 规模增长后的搜索需求。
## 基本信息
| 属性 | 值 |
|------|-----|
| 仓库 | [github.com/tobi/qmd](https://github.com/tobi/qmd) |
| 类型 | 本地搜索引擎 |
| 支持格式 | Markdown |
| 搜索方式 | BM25 + 向量搜索混合 |
| 排序 | LLM 重排序 |
| 运行方式 | 全设备端on-device |
## 接口
| 接口 | 用途 |
|------|------|
| **CLI** | LLM 可以通过 shell 调用 |
| **MCP Server** | LLM 作为原生工具使用 |
## 在 LLM Wiki 中的角色
- 小规模时:[[index]] 文件足够导航
- 增长后qmd 提供正式搜索能力
- 作为 MCP Server 可被 LLM Agent 直接调用,无需手动搜索
## 替代方案
如果不想引入外部工具,可以让 LLM 帮忙写一个简单的搜索脚本。
## 来源
- [[llm-wiki]] — Karpathy 推荐
- [[LLM Wiki]] — 核心概念页