DEV Community

Cover image for From Obsidian Vault to AI-Powered Knowledge Graph in Minutes
Denis MacPherson for Chaos Cypher

Posted on Originally published at chaoscypher.com

From Obsidian Vault to AI-Powered Knowledge Graph in Minutes

Open your Obsidian graph view and look at it honestly: every line on that screen is a link you typed by hand. The person mentioned in forty notes but never [[linked]], the concept that appears under three different names, the two projects connected by a decision you wrote down once and forgot -- none of it shows up. Your vault knows more than its graph does.

Chaos Cypher adds the missing layer. It reads the Markdown itself, extracts entities and relationships with an LLM, and makes the whole vault searchable and chat-ready -- without requiring a single connection to be pre-linked. Your manual wiki-links stay exactly what they are: deliberate structure. The AI-discovered layer sits alongside them, surfacing the connections you never typed.

The Workflow

No plugin required -- the archive loader does the work:

  1. Zip the notes you want to analyze. Start with a focused folder of at least ~10 notes rather than the entire vault, and leave out private notes you don't want processed.
  2. Upload the ZIP (or TAR.GZ) as a source. The archive loader recognizes Markdown-heavy projects, strips frontmatter, preserves heading structure, and sends each note through the same pipeline used for PDFs and web pages. Smaller archives are processed by the generic loader, which keeps frontmatter intact -- bundle at least ten notes to engage the Markdown handler's frontmatter stripping.

Add Source dialog with URL input and file drag-and-drop

  1. Confirm the detected domain. Indexing (chunking + local embeddings) takes seconds and immediately enables semantic search and RAG chat. After indexing, Chaos Cypher analyzes your notes and proposes an extraction domain -- review and confirm (or override) it in the dialog, and extraction starts.

  2. Wait for extraction. Extraction builds the graph: typed entities and relationships pulled from the prose itself.

  3. Explore what the AI found. People mentioned across multiple notes, concepts that appear under different headings, projects connected by shared decisions, recurring themes that were never explicitly linked -- now visible, navigable, and traceable back to the exact notes they came from.

Knowledge graph visualization showing extracted entities and relationships

  1. Ask questions. "What decisions led to the current architecture?" or "Where do my notes on attention mechanisms and retrieval overlap?" -- answered with citations back to your own notes, not the internet.

Scripting the Import

The steps above walk through the UI, but the same pipeline is reachable without opening a browser.

For developers: POST /api/v1/sources takes a multipart file upload and runs it through the identical loader dispatch the UI uses -- point it at your vault archive and it works the same way. POST /api/v1/sources/batch accepts a list of files if you're importing several exports at once, which is handy wired into a nightly vault-backup job: export, POST the archive, let indexing and extraction pick it up. In plain English: anything the "Upload" button does, a script can do too, over HTTP.

For CLI users: the same import is one command:

chaoscypher source add my-vault.zip
Enter fullscreen mode Exit fullscreen mode

source add isn't Obsidian-specific -- it's the general-purpose source-loading command, and it routes to the archive loader the same way the web UI does whenever it sees a .zip or .tar.gz. There's no separate "import vault" subcommand, because none is needed. In plain English: if you'd rather stay in the terminal, one command gets your vault into the graph.

A Few Tips for a Good First Pass

  • Keep filenames and headings descriptive -- they become context the extractor uses.
  • If your vault has a specialized vocabulary, review the extracted graph and then tune domains or templates to match it.
  • Everything runs locally if you pair it with Ollama -- your journal never leaves your machine.

This workflow shines wherever the value isn't only in the notes but in the relationships between them: research notes, project journals, meeting archives, long-running personal knowledge bases.

What's Next

A first-class Obsidian importer -- reading vaults directly, preserving wiki-links as graph edges alongside the AI-discovered ones -- is on the roadmap. If that's your use case, tell us how you'd want it to work; vault structures vary wildly and real examples shape the design.

Top comments (0)