by dtsola
小遥搜索,听懂你的话、看懂你的图,用AI找到本地任何文件。让搜索像聊天一样简单。XiaoyaoSearch: Understands your words, reads your images, finds any local file with AI. Making search as easy as chatting.
# Add to your Claude Code skills
git clone https://github.com/dtsola/xiaoyaosearchGuides for using ai agents skills like xiaoyaosearch.
xiaoyaosearch is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by dtsola. 小遥搜索,听懂你的话、看懂你的图,用AI找到本地任何文件。让搜索像聊天一样简单。XiaoyaoSearch: Understands your words, reads your images, finds any local file with AI. Making search as easy as chatting. It has 1,022 GitHub stars.
xiaoyaosearch's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/dtsola/xiaoyaosearch" and add it to your Claude Code skills directory (see the Installation section above).
xiaoyaosearch is primarily written in Python. It is open-source under dtsola on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh xiaoyaosearch against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
English Version | 简体中文


小遥搜索是一款专为知识工作者、内容创作者和技术开发者设计的跨平台本地桌面应用(Windows/MacOS/Linux)。通过集成的AI模型,支持语音输入(30秒内)、文本输入、图片输入等多种方式,将用户的查询转换为语义进行智能搜索,实现对本地文件的深度检索。









前端技术
后端技术
xiaoyaosearch/
├── backend/ # 后端服务 (Python FastAPI)
│ ├── app/ # 应用核心代码
│ │ ├── api/ # API路由层
│ │ ├── core/ # 核心配置
│ │ ├── models/ # 数据模型
│ │ ├── services/ # 业务服务
│ │ ├── schemas/ # 数据模式
│ │ └── utils/ # 工具函数
│ ├── requirements.txt # Python依赖
│ ├── main.py # 应用入口
│ └── .env # 环境变量
├── frontend/ # 前端应用 (Electron + Vue3)
│ ├── src/ # 源代码
│ │ ├── main/ # Electron主进程
│ │ ├── preload/ # 预加载脚本
│ │ └── renderer/ # Vue渲染进程
│ ├── out/ # 构建输出
│ ├── dist-electron/ # 打包输出
│ ├── resources/ # 应用资源
│ ├── package.json # Node.js依赖
│ └── electron-builder.yml # 打包配置
├── docs/ # 项目文档
│ ├── 00-mrd.md # 市场调研
│ ├── 01-prd.md # 产品需求
│ ├── 02-原型.md # 产品原型
│ ├── 03-技术方案.md # 技术方案
│ ├── 04-开发任务清单.md # 开发任务
│ ├── 05-开发排期表.md # 开发排期
│ ├── 开发进度.md # 进度跟踪
│ ├── 接口文档.md # API文档
│ ├── 数据库设计文档.md # 数据库设计
│ └── 高保真原型/ # UI原型
├── data/ # 数据目录
│ ├── database/ # SQLite数据库
│ ├── indexes/ # 搜索索引
│ │ ├── faiss/ # 向量索引
│ │ └── whoosh/ # 全文索引
│ ├── models/ # 模型文件
│ └── logs/ # 日志文件
├── .claude/ # Claude助手配置
├── LICENSE # 开源协议(AGPL-3.0)
├── README.md # 项目说明(中文版)
└── README_EN.md # 项目说明(英文版)
适用人群:非开发者、希望快速体验小遥搜索的用户 支持平台:仅支持 Windows 部署难度:⭐ 简单(一键安装)
从百度网盘下载最新的 Windows 整合包:
请选择最新版本下载(如 XiaoyaoSearch-Windows-v1.1.1.zip)
1. 解压整合包
将下载的压缩包解压到任意目录(建议不要包含中文路径)
2. 运行环境准备脚本
双击运行 scripts/setup.bat,脚本会自动完成以下操作:
RTX 50 系显卡用户:如果您使用 RTX 50 系显卡,请运行
scripts/setup_rtx50显卡.bat,该脚本会安装支持 CUDA 12.8 的 PyTorch 版本以获得最佳性能。
3. 安装 Ollama
双击运行 runtime\ollama\OllamaSetup.exe,按提示完成安装。
安装完成后,打开命令行运行:
ollama serve
ollama pull qwen2.5:1.5b
4. 下载 AI 模型
从百度网盘下载默认模型:
将模型解压到对应目录:
data\models\embedding\BAAI\bge-m3\ - 嵌入模型data\models\cn-clip\ - 视觉模型data\models\faster-whisper\ - 语音识别模型5. 启动应用
双击运行 scripts/startup.bat,脚本会:
详细文档:整合包部署指南
适用人群:开发者、希望参与项目贡献的用户 支持平台:Windows / macOS / Linux 部署难度:⭐⭐⭐ 需要开发环境
1. 克隆项目
git clone https://github.com/dtsola/xiaoyaosearch.git
cd xiaoyaosearch
2. 后端部署
# 进入后端目录
cd backend
# 安装依赖包(默认CPU版本的推理引擎)
pip install -r requirements.txt
# 安装faster-whisper
pip install faster-whisper
# 启用CUDA(可选,注意:cuda版本需根据环境确定)
pip uninstall torch torchaudio torchvision
# RTX 40 系及更早显卡(CUDA 12.1)
pip install torch==2.1.0+cu121 torchaudio==2.1.0+cu121 torchvision==0.16.0+cu121 --index-url https://download.pytorch.org/whl/cu121
# RTX 50 系显卡(CUDA 12.8)
pip install torch==2.10.0+cu128 torchaudio==2.10.0+cu128 torchvision==0.25.0+cu128 --index-url https://download.pytorch.org/whl/cu128
安装ffmpeg: https://ffmpeg.org/download.html
安装ollama: https://ollama.com/
配置 .env 文件:
# 数据配置
FAISS_INDEX_PATH=../data/indexes/faiss
WHOOSH_INDEX_PATH=../data/indexes/whoosh
DATABASE_PATH=../data/database/xiaoyao_search.db
# API配置
API_HOST=127.0.0.1
API_PORT=8000
API_RELOAD=true
# 日志配置
LOG_LEVEL=info
LOG_FILE=../data/logs/app.log
# ========== 分块索引配置(可选) ==========
# 单次向量推理的批大小(GPU 建议 256;CPU 环境会自动降到 32)
CHUNK_EMBEDDING_BATCH_SIZE=256
# 流式构建时每批处理的分块数(内存紧张时可调低到 2048)
CHUNK_PIPELINE_BATCH_CHUNKS=4096
# 分块向量量化方式: flat(不压缩) / sq8(4 倍压缩,默认) / fp16(2 倍压缩)
CHUNK_FAISS_QUANTIZER=sq8
# 量化训练采样数量(默认 50000)
CHUNK_FAISS_TRAINING_SAMPLE=50000
# 启动时自动迁移已有分块向量索引(默认 true;迁移失败会保留原索引)
CHUNK_FAISS_MIGRATE_ON_STARTUP=true
分块索引配置说明:
| 配置项 | 默认值 | 说明 |
|---|---|---|
CHUNK_EMBEDDING_BATCH_SIZE |
256 |
单次向量推理批大小。GPU 建议 256;检测到 CPU 时自动降到 32 |
CHUNK_PIPELINE_BATCH_CHUNKS |
4096 |
流式构建每批处理的分块数,内存紧张时可调低到 2048 |
CHUNK_FAISS_QUANTIZER |
sq8 |
向量量化方式:flat 不压缩、sq8 4 倍压缩(推荐)、fp16 2 倍压缩 |
CHUNK_FAISS_TRAINING_SAMPLE |
50000 |
量化训练采样数量,越大越精确、迁移越慢 |
CHUNK_FAISS_MIGRATE_ON_STARTUP |
true |
启动时自动把已有 Flat 索引迁移为配置的量化类型,不重新嵌入 |
体积参考:BGE-M3 为 1024 维,每个分块 Flat 约占 4KB、SQ8 约占 1KB、FP16 约占 2KB。以 38 万个分块为例,Faiss 索引可从 1.57GB 降到约 392MB(约 -75%)。
检索质量:SQ8 实测召回率约 99%;迁移前会自动做 Top-K 召回校验,低于 95% 会放弃迁移并保留原索引。
升级说明:升级后首次启动会在后台自动迁移已有索引(38 万块约 1-3 分钟),迁移期间 API 正常可用,失败不影响原索引,无需重新构建索引。
准备模型: 系统默认模型说明:
注意:建议先准备默认模型,先成功启动应用后,再更换模型。
ollama模型: ollama pull qwen2.5:1.5b (根据情况自行选择)
所有模型下载地址:(百度盘) 链接: https://pan.baidu.com/s/1jRcTztvjf8aiExUh6oayVg?pwd=ycr5 提取码: ycr5
嵌入模型:
语音识别模型:
视觉模型:
启动后端服务:
# 使用内置配置启动
python main.py
# 或使用uvicorn启动
uvicorn main:app --host 127.0.0.1 --port 8000 --reload
# 进入前端目录
cd frontend
# 安装依赖
npm install
# 启动开发服务器
npm run dev
当需要升级到新版本时,请参考 版本升级指南,轻松保留您的索引数据和配置。
感谢你对小遥搜索的关注!我们欢迎任何形式的贡献,无论是代码、文档、Bug 修复还是新功能建议。
步骤 1:Fork 项目
步骤 2:克隆到本地
git clone https://github.com/<你的用户名>/xiaoyaosearch.git
cd xiaoyaosearch
步骤 3:创建功能分支
git checkout -b feature/你的功能名称
# 或
git checkout -b fix/问题描述
步骤 4:进行开发