HIRO GEAR
AI Raspberry Pi RAG

Moving Beyond Plain Text Search: How OKF-Enabled Graph RAG Delivers Three-Dimensional Context to AI

Moving Beyond Plain Text Search: How OKF-Enabled Graph RAG Delivers Three-Dimensional Context to AI

Previously, I explained how turning Obsidian data into an independent RAG exposed via MCP created the “ultimate multi-AI notebook” searchable across any AI. This time, I will dive deeper into the next evolution of that architecture: “support for OKF (Open Knowledge Format)” and “evolving into Graph RAG.”

Why Is Traditional RAG “Flat”?

In a typical RAG system, text files such as Markdown are split into chunks of a certain length, vectorized, and passed to the AI. However, this has a major flaw: the AI only receives “fragments of text that matched the search” and cannot understand the “contextual connections” — such as which project a note belongs to or what other tasks it is related to.

A Solution Adopting Google’s “OKF”

To solve this, I introduced the concept of “OKF (Open Knowledge Format),” proposed by Google, into my Obsidian operational rules. This is an approach that treats information not merely as a flat sequence of text, but as “YAML structured data (metadata)” + “Markdown body.”

Specifically, I add properties (YAML) at the top of Obsidian notes to explicitly describe edges (relationships).

---
parent: "[[AI Agent Development Project]]"
type: "task"
---

“Three-Dimensional Knowledge” That Graph RAG Delivers to AI

I modified my custom background importer (Watcher) to extract properties such as parent and related from this YAML frontmatter and record them in SQLite (Graph DB) as typed, semantic edges (relationship types).

Then, when an AI performs a search via the MCP server, instead of simply returning the matching text, it maps a “Knowledge Graph Topology” like the following to the beginning of the output string passed to the AI:

[Knowledge Graph Topology]
[Current Task] --(parent)--> [AI Agent Development Project]
[Current Task] --(link)--> [Related Technical Notes]

[Content Details]
...(Note body)...

AI Started “Understanding” the Context

As a result of this upgrade, the reasoning capabilities of AI agents using MCP (such as Gonras and Antigravity) improved dramatically. Rather than just matching keywords, they began recognizing the three-dimensional connections inside the notebook (Graph Topology) — reasoning things like, “Since this task is a child task of that project, it affects the overall schedule.”

Taking a step beyond simple “AI × Obsidian” integration, we install the link structure of our own brain directly into the AI. I am convinced that this is the optimal solution for next-generation personal AI.