Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

obsidian-ragObsidian RAG 搜索

Agent Skill

用于搭建或维护带检索增强的 RAG 工作流,适合让 Agent 处理知识库问答、向量检索、来源引用和事实核查。它可以辅助整理数据接入、Embedding、向量库、召回参数和回答生成流程。使用时需要确认数据来源、更新频率、召回阈值和引用展示方式,避免把未命中的资料或过期内容包装成确定事实。

总安装

225

周安装

9

GitHub Stars

2

下载量

73
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:obsidian-rag(Obsidian RAG 搜索)
来源仓库:https://github.com/derekhsu/obsidian-rag
仓库路径:skills/obsidian-rag
安装命令:
npx skills add https://github.com/derekhsu/obsidian-rag --skill obsidian-rag
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/derekhsu/obsidian-rag --skill obsidian-rag

简介

用于搭建或维护带检索增强的 RAG 工作流,辅助知识库问答和事实核查。

  • 支持数据接入、向量检索、召回参数配置和引用展示管理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 使用时需确认数据来源、更新频率和召回阈值,避免生成虚假事实。
  • obsidian-rag 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

obsidian-rag — Obsidian Vault Management & RAG Skill

Category: knowledge-management / note-taking / semantic-search Language: Python 3.9–3.12 Runtime: uv (dependencies locked via pyproject.toml) License: MIT

Acknowledgment: This project is inspired by gemini-obsidian.

What It Does

Provides 16 tools for Obsidian vault management (read, write, search, link analysis, frontmatter) plus a full RAG pipeline (LanceDB + FastEmbed embeddings) for semantic search over your notes.

Setup

When using this skill for the first time, ensure uv is installed. Run from the skill directory:

cd skills/obsidian-rag
uv sync        # installs all dependencies into .venv/

On first run, uv will download and cache all packages. Subsequent calls are instant.

Tools

Vault Navigation & Read

ToolDescription
list_notesList markdown files in vault (optional subfolder filter)
read_noteRead full content of a note
search_notesFull-text search across all notes (filename + content)

Note Writing

ToolDescription
create_noteCreate a new note with content
append_noteAppend text to end of existing note
get_daily_noteGet or auto-create today's daily note
append_daily_logAppend timestamped entry under a heading in daily note
move_noteMove or rename a note

Wikilink Analysis

ToolDescription
get_backlinksFind all notes linking to a target note
get_linksExtract all outgoing wikilinks from a note
get_broken_linksFind wikilinks pointing to non-existent notes

Content Editing

ToolDescription
update_frontmatterUpdate YAML frontmatter (single key or batch JSON)
replace_sectionReplace body under a heading (preserves heading line)
replace_in_noteReplace first occurrence of text in a note

RAG (Semantic Search)

ToolDescription
rag_indexIndex vault for semantic search (incremental by default)
rag_querySemantic search on indexed vault

Usage

# Via uv directly (from skill directory)
cd skills/obsidian-rag
uv run python -m obsidian_rag list_notes
uv run python -m obsidian_rag get_backlinks "Project Alpha"
uv run python -m obsidian_rag append_daily_log "Work Log" "Finished the API integration"

# Reindex vault (using reindex script)
python skills/obsidian-rag/scripts/reindex.py /path/to/vault

Technical Details

RAG Pipeline

  • Embedding model: BAAI/bge-small-zh-v1.5 (512-dim, FastEmbed)
  • Vector store: LanceDB (local, zero-config)
  • Chinese chunking: Splits on 。!?;:.!?:;,, merges up to target size

Defaults

  • Chunk size: 40–1800 chars, target 700 chars
  • Embed batch size: 8 (memory-efficient)
  • Incremental indexing via MD5 file hashes

Config Files & Storage

Paths are OS-dependent (managed via platformdirs):

  • macOS: ~/Library/Application Support/obsidian-rag/
  • Linux: ~/.config/obsidian-rag/ (config) and ~/.local/share/obsidian-rag/ (data)
  • Windows: %LOCALAPPDATA%\openclaw\obsidian-rag\

Stored files include:

  • config.json — Vault path configuration.
  • lancedb/ — Vector database directory.
  • file_hashes.json — Incremental index hashes.

Requirements (locked versions)

fastembed==0.7.4
lancedb==0.25.3
onnxruntime==1.19.2
python-frontmatter>=1.1.0
click>=8.1.7
platformdirs>=2.5.0

Environment Variables

VariableDescription
OBSIDIAN_VAULT_PATHDefault vault path (overridden by --vault-path)

OpenClaw / AI Agent Integration

Each tool maps to a CLI subcommand. The agent invokes:

cd skills/obsidian-rag && uv run python -m obsidian_rag <tool> [options]

适合场景

01

研究助手

02

事实核查

03

知识库问答

04

带来源的搜索总结

能力概览

能力 1

组合搜索和大模型调用

能力 2

支持多来源检索和总结

能力 3

强调引用来源和事实核查

能力 4

适合研究型 Agent 流程

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.46%
按下载量换算27

Claude

27.67%
按下载量换算20

Cursor

18.72%
按下载量换算14

Gemini CLI

8.41%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills