Files
nexus/wiki/concepts/Dataview.md
2026-05-03 05:42:12 +08:00

36 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Dataview"
type: concept
tags: [tool, obsidian, plugin, query]
sources: [karpathy-最新分享-用-llm-搭建个人知识库-告别-rag-的低效循环]
last_updated: 2026-04-20
---
## Aliases
- Obsidian Dataview 插件
- DataviewJS
## Definition
Obsidian 的社区插件,对页面 YAML frontmatter 做数据库式查询,自动生成动态表格和列表。是 LLM Wiki 的可选增强工具。
## LLM Wiki Usage
让 AI 在每个 Wiki 页面的 frontmatter 里写上结构化元数据(如 `type``date``tags``source_count`),然后用 Dataview 查询生成动态报表。
## Example Query
````markdown
```dataview
TABLE title, date, tags
FROM "wiki/sources"
SORT date DESC
```
````
## Practical Value
- 页面少时价值有限Wiki 规模大时(数百页面)报表价值显著
- 老张([[laozhang2579]])观点:"多到一定程度或者想用元数据查询方式习惯的可以考虑,我是直接用索引文件配合 Claude 的文件检索"
- 安装:设置 → 第三方插件 → 社区插件市场 → 搜索 "Dataview" → 安装并启用
## Connections
- [[Dataview]] ← 可选增强 → [[LLM Wiki]]
- [[Dataview]] ← 插件 → [[Obsidian]]