RAG vs OKF (Open Knowledge Format) logopeterindia.net
Knowledge Hub

RAG vs OKF (Open Knowledge Format)

Retrieval at scale versus curated markdown knowledge: what Retrieval-Augmented Generation and the Open Knowledge Format each do, and how agents can use both.

46 topics•7 categories•Updated October 2026

RAG and OKF: Two Layers of Agent Knowledge

2 entries

Retrieval-augmented generation (RAG) searches a large body of documents at question time: content is split into chunks, embedded, indexed, and the most similar chunks are passed to the model. The Open Knowledge Format (OKF) is a different idea. Google Cloud published it in June 2026 as a vendor-neutral format for representing knowledge as plain markdown files with YAML frontmatter, linked together so an agent can read the exact concept it needs. In short, RAG is built for finding information in a large, changing corpus, while OKF is built for stating curated knowledge, such as definitions, policies and runbooks, in a form that can be read directly, reviewed and versioned. They are complementary rather than rivals: curated, stable facts suit OKF bundles, and the large, fast-changing long tail stays in a retrieval pipeline. An OKF bundle can itself be indexed by a RAG system. The framing of this page follows an October 2026 article by Rohan Mistry in Towards AI; the text here is written independently, and specifics should be checked against the specification.

Open Knowledge Format (OKF)

9 entries

The specification, tooling and explainers.

The LLM Wiki Idea

5 entries

The pattern OKF formalizes.

RAG Foundations & Frameworks

8 entries

Build and evaluate retrieval pipelines.

Vector Databases & Search

6 entries

Where RAG indexes live.

Knowledge Graphs & Agent Memory

8 entries

Other ways to give agents structured or persistent knowledge.

Related Pages

8 entries

Neighbouring pages on this site.

Frequently Asked Questions

What is OKF?

The Open Knowledge Format is a vendor-neutral specification from Google Cloud for representing knowledge as a directory of markdown files with YAML frontmatter. Each file describes a concept, and links between files let an agent navigate related concepts. See the specification in the official repository for the exact rules.

How is OKF different from RAG?

RAG searches a large corpus by similarity and returns likely-relevant chunks. OKF stores curated knowledge that an agent reads directly by following links from an index. RAG favors scale and discovery; OKF favors precision, explicit relationships and reviewability.

Does OKF replace RAG?

No. Curated, stable knowledge such as definitions, policies and runbooks suits OKF, while large, fast-changing or unstructured collections still need retrieval. Many designs combine them, for example by routing questions about known facts to the curated bundle and everything else to search.

What is the LLM Wiki?

A pattern described by Andrej Karpathy in which an LLM compiles source material into a persistent, interlinked markdown wiki and keeps it updated, rather than retrieving from raw documents on every question. OKF formalizes this style into a portable format.

Do I need special tools for OKF?

The format is plain markdown with YAML frontmatter, so a text editor and a version-controlled folder are enough to start. Parsers, validators and viewers exist, but check each project's maturity before relying on it.

How current is this page?

Links were checked in October 2026. OKF is a young specification and several explainers disagree on details such as required fields and version dates, so use the specification repository as the authority. Sites that block automated checks are kept and may need a manual click.