Dynamic Dataview Indexing for AI Conversations
Learn how to write dynamic Dataview queries that index, filter, and surface your Grok and AI conversations inside your Obsidian vault.
000 - Grok Chat Index.md containing preconfigured Dataview queries. When you open this note in Obsidian with the Dataview community plugin installed, your chats render as an interactive, searchable table.
1. The Master Grok Chat Query
To display all exported Grok conversations sorted by date descending, insert this code block into any Obsidian note:
```dataview
TABLE date, provider, tags, summary
FROM #ai-chat/grok
SORT date DESC
```
This query inspects the YAML frontmatter fields generated by AI2Vault and builds a reactive table with clickable note links.
2. Topic-Specific Maps of Content (MOCs)
When discussions span specific subjects (such as distributed systems, cryptography, or frontend design), you can query by combined tags:
```dataview
TABLE date, model, summary
FROM #ai-chat/grok AND #architecture
SORT date DESC
```
AI2Vault automatically generates topic hub notes (such as MOC - System Architecture.md) that link back to the master index.
3. Extracting Action Items & Tasks
You can also use Dataview task queries to aggregate all open action items from your AI discussions in one dashboard:
```dataview
TASK
FROM #ai-chat/grok
WHERE !completed
```
Try Our Query Generator
Need customized queries for your specific tags and folder paths? Use our Free Dataview Query Generator Tool to customize your queries with one click.