简介
GNO 是本地化文档搜索引擎,依托 BM25 与向量混合检索技术,实现无需云端 API 的私有化知识管理,为用户提供毫秒级本地文件语义查询与 AI 引用回答能力。
原始描述
Search local documents, files, notes, and knowledge bases. Index directories, search with BM25/vector/hybrid, get AI answers with citations. Use when user wants to search files, find documents, query notes, look up information in local folders, index a directory, set up document search, build a knowledge base, needs RAG/semantic search, or wants to start a local web UI for their docs.
通过你的 Agent 添加
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
GNO - 本地知识引擎核心用法
GNO 是一款开源的本地知识检索工具,旨在帮助用户对个人文件、文档和笔记进行即时搜索。其核心功能是通过 gno 命令行工具,将指定的文件夹(如 ~/docs)建立索引,然后利用 BM25 关键字搜索、语义向量搜索(vsearch)或 AI 问答(ask --answer)等多种模式,快速找到所需信息。整个过程完全在本地运行,无需连接云端,也不需要配置 API 密钥,从根本上保障了数据隐私。
除了基础的搜索功能,它还提供了强大的文档关系管理能力。用户可以给文档添加标签(tags)进行分类和过滤,还能通过 links、backlinks 和 graph 命令,查看文档之间的引用、反向链接,甚至可视化知识图谱,这使其成为个人知识管理和“第二大脑”构建的绝佳助手。此外,gno serve 命令可以启动一个本地 Web 界面,方便用户在浏览器中浏览和搜索文档。
显著优点
- 极致隐私与离线可用:一切数据索引和搜索都在本地机器上完成,不存在数据外泄风险,非常适合处理敏感文件。同时,
--offline模式确保了即使没有网络也能正常使用。 - 多模态搜索能力:提供了从精确匹配到语义理解的多种搜索模式。用户既可以用
search进行毫秒级的关键词精确查找,也可以使用query或ask,让 AI 模型理解问题意图并提供带引用的答案,极大地提升了信息获取的灵活性。 - 知识关联与可视化:不仅仅是文件搜索工具,更是一个知识管理工具。其内置的标签系统、双向链接和知识图谱功能,能帮助用户发现笔记和文档间的深层联系,促进知识的内化与创新。
- 强大的集成与扩展性:支持 MCP 协议,可直接作为 AI 助手的知识库后端,提供文档检索服务。同时提供了
gno serve命令启动 Web UI,满足不同场景下的使用偏好。
潜在缺点或局限性
- 索引维护成本:在文件被修改或新增后,用户必须手动执行
gno index或gno embed命令来更新索引,否则新增或修改的内容将无法被语义搜索发现。这个过程并非自动化,对于频繁变动的文档库来说比较繁琐。 - 本地模型依赖与性能:向量搜索和 AI 问答功能依赖于本地下载的嵌入和生成模型(
models系列命令管理)。这意味着首次使用需要下载模型文件,且搜索速度和质量很大程度上取决于用户机器的硬件性能,尤其是内存和 CPU/GPU。 - 学习曲线:作为一个功能丰富的命令行工具,它有众多的命令和配置选项。用户需要花时间阅读文档才能完全掌握其用法,这对于不熟悉命令行的用户不够友好。
- 二进制安全未覆盖:本次安全认证仅针对该 Skill 的说明文档,而真正的工具
gno命令行二进制文件本身,其安全性需要用户另行审查。
适合的目标群体
- 个人知识管理爱好者:大量使用 Markdown、笔记软件记录信息,希望能通过智能方式快速检索和连接想法的人。
- 研究者和学生:需要管理大量论文 PDF、电子书和研究笔记,并希望发现不同资料间潜在联系的学术工作者。
- 注重隐私的专业人士:律师、医生、记者等需要频繁处理高度敏感文件,严禁信息上传到第三方云服务的用户。
- 本地 AI 探索者:喜欢在本地环境部署和实验 AI 模型,希望为自己的文档构建一个私有 RAG 系统的开发者。
使用风险总结
使用该 Skill 介绍的方法来操作 GNO 工具,主要的风险来自于工具本身的局限性和用户的工作环境。首先,gno serve --host 0.0.0.0 命令若在不安全的网络环境中使用,会将本地文档的 Web 界面暴露给局域网内的所有设备,可能造成信息泄露。其次,作为个人开发者维护的项目,其代码更新频率和长期稳定性可能存在不确定性。最后,用户需要明确,本 Skill 文件仅为使用指南,真正的 gno 二进制文件的安全性和性能风险,如潜在的漏洞或资源消耗,需要单独评估。
技能正文
name: gno description: Search local documents, files, notes, and knowledge bases. Index directories, search with BM25/vector/hybrid, get AI answers with citations. Use when user wants to search files, find documents, query notes, look up information in local folders, index a directory, set up document search, build a knowledge base, needs RAG/semantic search, or wants to start a local web UI for their docs. allowed-tools: Bash(gno:*) Read
GNO - Local Knowledge Engine
Fast local semantic search. Index once, search instantly. No cloud, no API keys.
When to Use This Skill
- User asks to search files, documents, or notes
- User wants to find information in local folders
- User needs to index a directory for searching
- User mentions PDFs, markdown, Word docs, code to search
- User asks about knowledge base or RAG setup
- User wants semantic/vector search over their files
- User needs to set up MCP for document access
- User wants a web UI to browse/search documents
- User asks to get AI answers from their documents
- User wants to tag, categorize, or filter documents
- User asks about backlinks, wiki links, or related notes
- User wants to visualize document connections or see a knowledge graph
Quick Start
gno init # Initialize in current directory
gno collection add ~/docs --name docs # Add folder to index
gno index # Build index (ingest + embed)
gno search "your query" # BM25 keyword search
Command Overview
| Category | Commands | Description |
|---|---|---|
| Search | search, vsearch, query, ask |
Find documents by keywords, meaning, or get AI answers |
| Links | links, backlinks, similar, graph |
Navigate document relationships and visualize connections |
| Retrieve | get, multi-get, ls |
Fetch document content by URI or ID |
| Index | init, collection add/list/remove, index, update, embed |
Set up and maintain document index |
| Tags | tags, tags add, tags rm |
Organize and filter documents |
| Context | context add/list/rm/check |
Add hints to improve search relevance |
| Models | models list/use/pull/clear/path |
Manage local AI models |
| Serve | serve |
Web UI for browsing and searching |
| MCP | mcp, mcp install/uninstall/status |
AI assistant integration |
| Skill | skill install/uninstall/show/paths |
Install skill for AI agents |
| Admin | status, doctor, cleanup, reset, vec, completion |
Maintenance and diagnostics |
Search Modes
| Command | Speed | Best For |
|---|---|---|
gno search |
instant | Exact keyword matching |
gno vsearch |
~0.5s | Finding similar concepts |
gno query --fast |
~0.7s | Quick lookups |
gno query |
~2-3s | Balanced (default) |
gno query --thorough |
~5-8s | Best recall, complex queries |
gno ask --answer |
~3-5s | AI-generated answer with citations |
Retry strategy: Use default first. If no results: rephrase query, then try --thorough.
Common Flags
-n <num> Max results (default: 5)
-c, --collection Filter to collection
--tags-any <t1,t2> Has ANY of these tags
--tags-all <t1,t2> Has ALL of these tags
--json JSON output
--files URI list output
--line-numbers Include line numbers
Global Flags
--index <name> Alternate index (default: "default")
--config <path> Override config file
--verbose Verbose logging
--json JSON output
--yes Non-interactive mode
--offline Use cached models only
--no-color Disable colors
--no-pager Disable paging
Important: Embedding After Changes
If you edit/create files that should be searchable via vector search:
gno index # Full re-index (sync + embed)
# or
gno embed # Embed only (if already synced)
MCP gno.sync and gno.capture do NOT auto-embed. Use CLI for embedding.
Reference Documentation
| Topic | File |
|---|---|
| Complete CLI reference (all commands, options, flags) | cli-reference.md |
| MCP server setup and tools | mcp-reference.md |
| Usage examples and patterns | examples.md |
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。