Open Knowledge Format: A Human-Curated Alternative to RAG and Knowledge Graphs
How a simple combination of markdown, metadata, links, AI agents, and human curation can turn organizational knowledge into an AI-ready knowledge base.
Earlier this year, Andrej Karpathy published an AI-assisted approach to structuring knowledge called LLM Wiki. The fascinating aspect of this idea is that it only consists of a prompt that instructs agents like Claude or Copilot how to extract knowledge from a document corpus into the wiki and how to query the wiki in order to answer user questions. In June, Google formalized the LLM Wiki idea into the Open Knowledge Format (OKF) specification.
Why should you care?
Organizations have enormous amounts of knowledge in documents, emails, manuals, and other sources. RAG makes this knowledge searchable, but does not necessarily make it curated, structured, or maintainable. Knowledge graphs provide structure, but require substantially more modeling. OKF offers a pragmatic middle ground: AI can help build the knowledge base, while humans retain control over its structure and content.
This article provides a practical introduction to OKF. It:
- Explains what OKF is and how it can be used to structure organizational knowledge
- Shows how to introduce and implement OKF within your organization
- Demonstrates how to connect OKF to existing systems, data sources, and business applications
- Compares OKF with other approaches, including RAG, GraphRAG, and knowledge graphs
Motivation of the Open Knowledge Format
In AI, there are two schools of thought: the symbolic reasoning community focuses on logic and deduction in order to make systems intelligent. Take a chess program for instance. It calculates possible moves and evaluates positions in order to win games. The neural network community uses machine learning paradigms with Large Language Models (LLM) being the most prominent technology today. LLMs learn from massive amounts of texts and develop some form of understanding by generalizing from examples.
In knowledge management, these two schools of thought are also visible. The symbolic reasoning community tends to favor Knowledge Graphs (a graph structure of concepts and their relationships) to represent knowledge, whereas the neural network / LLM approach will likely involve Retrieval Augmented Generation or RAG (given a question, semantic search — in case of GraphRAG followed by a graph retrieval — is used to identify relevant text blocks which are then given to the LLM in order to answer).
In a way, OKF sits in the middle. It combines human editing and oversight with AI’s ability to process large amounts of text. This approach is very promising, since almost all organizational knowledge is captured in emails, manuals, papers, etc. With the help of AI, knowledge workers can process the information quickly without losing the ability to curate and structure the knowledge in a traditional way.
Open Knowledge Format Spec
The specification is quite simple. OKF defines so-called knowledge bundles. A bundle is a folder containing markdown files in the following structure:
path/to/bundle/
index.md # Optional. Directory listing for progressive disclosure.
log.md # Optional. Chronological history of updates.
<concept>.md # A concept at the bundle root.
<subdirectory>/ # Subdirectories organize concepts into groups.
index.md
<concept>.md
<subdirectory>/
...A markdown file explains the concept and usually contains links to other concepts / files. Furthermore, you can encode concept metadata using YAML frontmatter before the markdown text:
---
type: <Type name> # REQUIRED
title: <Optional display name>
description: <Optional one-line summary>
resource: <Optional canonical URI for the underlying asset>
tags: [<tag>, <tag>, ...] # Optional
# ... trust, lifecycle, provenance, and computation families
# ... other producer-defined key/value pairs
---Creating and Editing OKF
The spec does not prescribe how the wiki is being edited. A common approach can be found in this Claude skill file which is derived from Andrej Karpathy’s original post. The wiki is assembled based on a corpus:
raw/ — Immutable source material. You read, never modify.
wiki/ — Compiled knowledge articlesThese prompts (we show only a shortened version — please refer to the skill file for the full prompt) instruct the agent how to build the wiki from the corpus:
Ingest
Fetch a source into raw/, then compile it into wiki/ — unless the source adds nothing new.
Compile (wiki/)
Determine where the new content belongs: Same core thesis as existing article → Merge into that article.
New concept → Create a new article in the most relevant topic directory
Post-Ingest
Update wiki/index.md: add or update entries for every touched article. Append to wiki/log.mdAfter the agent suggests changes to the wiki, a human can review and edit the changes before committing them to a versioning system like Git. For a complete real-world example, you can have a look at this Customer Relationship Management OKF. We will be using this example in this article.
Implementing OKF
In this section, we will show how you can roll out an existing OKF knowledge bundle in your organization using the Dashjoin Platform. This includes visualizing the wiki and its metadata, querying the wiki from a chatbot, and connecting the wiki with other enterprise systems. We will not cover how to construct a knowledge bundle, since there are countless tutorials on this already.
Get Andreas Eberhart’s stories in your inbox
Join Medium for free to get updates from this writer.
We use docker compose to set up the platform and AI Assistant with this AI app:
git clone https://github.com/dashjoin/docker-compose
cd docker-compose
# add your API key to .env
docker compose up -d
# make the knowledge bundle available to the app
cd volumes/dashjoin/app/upload
git clone https://github.com/jacquescorbytuech/crm-open-knowledge-wikiLogin using admin:djdjdj and navigate to the functions page. The app already contains an import ETL function that parses the knowledge bundle:
The import creates three tables:
- concept: contains every wiki concept with its markdown, metadata, and links to other concepts
- type: all frontmatter types used
- tag: all frontmatter tags used
You can now browse, search, and visualize the wiki:
To query the wiki, go to the OKF page. Whenever you ask a question, it is answered using a two step approach. First, the AI queries for suitable concept pages and returns them using JSON mode. Then, the recommended pages are retrieved and added to the question answering context:
Note that both the import script as well as the query algorithm are encoded in the app and can be customized easily.
A key advantage of the Dashjoin Platform is its ability to connect to other data sources. We can create a customer table with a “channel” column that references our concepts. Once we add some data, we can visualize how customers were acquired via different channels which enables a whole new set of functionality by exposing this data to the AI via MCP. This allows asking questions like: which channel should we invest in, in order to drive product upsell.
Now that you saw OKF in action, let’s compare it to other technologies in the area:
OKF vs. RAG
From a user’s perspective, querying RAG vs. OKF looks very similar. Both answer questions by referencing the sources they used. The key difference lies in the way the knowledge base is established:
A typical RAG system automates much of the process of turning a document corpus into a searchable knowledge base. The stack splits up the corpus, computes semantic embeddings for the chunks and stores them in a vector database. Once a query comes in, the embedding is computed for the question and semantically similar chunks are retrieved from the vector database. These chunks are then added to the LLM context in order to generate an answer.
The automatic ingestion process is both a blessing and a curse. On the one hand, adding content requires no manual effort. On the other hand, the system is somewhat of a black box. The user sees which chunks were selected, but never knows which other relevant chunks were omitted. This becomes a problem with larger RAG systems where different topics use similar wording. This can lead to irrelevant — and when used in the wrong context even wrong — information being added to the context.
OKF requires manual effort when assembling the wiki. But it also gives the author way more control over which information is added to the context. Note that OKF and RAG are not mutually exclusive. An OKF knowledge base can itself serve as the source for a RAG system.
OKF vs. Knowledge Graphs
Looking at the screenshot above, OKF can already be viewed as a graph structure. So the question is how a knowledge graph is different. Knowledge graphs go beyond a simple “link” relationship between nodes and introduce labelled links as shown in this example of a CRM knowledge graph:
The nodes and edges are stored in a graph database and can be queried using SPARQL or Cypher. Knowledge graphs adhere to ontologies. An ontology is the conceptual blueprint or rulebook, while a knowledge graph is the populated database of concrete facts built using that blueprint. Ontologies also let you infer new facts from symbolic rules.
While both OKF and knowledge graphs are methods for representing knowledge, they are quite different. A knowledge graph is more a database of structured information. Textual descriptions are part of the database, but they are not a first class citizen.
OKF on the other hand is very text centric with the graph structure being more of a side product.
OKF vs. GraphRAG
GraphRAG is the technology closest to OKF. Like OKF, there is a building and a query phase. In the building phase, AI is used to construct a knowledge graph from the corpus. The process works as follows:
- Like in RAG, the corpus is sliced into chunks
- An LLM scans each text unit to extract “nodes” (people, places, dates, objects, concepts) and “edges” (the specific relationships connecting them)
- LLM merges duplicate entities and generates short, descriptive summaries for every node
- Interconnected entities are clustered into “communities”
- LLM generates summary reports for these communities at multiple levels
To answer a query, it uses vector search to find relevant entities within the knowledge graph. From there, it traverses the graph’s edges to pull in neighboring nodes, their relationships, and the original source text chunks. This provides the LLM with a context-rich map of connections. Questions asking for summaries or overarching themes use the pre-generated community summaries.
Both GraphRAG and OKF leverage AI to assemble the knowledge base. They differ in the storage format (markdown files vs. graph database).
The key difference is how user edits are handled. In principle, GraphRAG allows for users to edit the resulting knowledge graph. However, once new content is added to the corpus, it can be tricky to merge this data with user edits.
Summary
In this article we looked at OKF as an emerging technology for AI-assisted knowledge management. Compared to RAG, knowledge graphs, and GraphRAG, its main benefit is the low barrier to entry. AI agents are available to almost all users. OKF is based on the popular markdown format allowing its contents to be consumed by AI and humans alike. The storage format of markdown files, YAML frontmatter, and a simple folder structure makes it portable and suitable for standard version control and collaboration systems like Git. The degree of AI automation vs. human control is up to teams. They can establish a rigorous review process or they can vibe code the knowledge base with almost no review at all. Tools like Obsidian allow interacting with OKF seamlessly. We also showed how Dashjoin can be used to link the knowledge base to other systems. In the future, OKF might adopt ideas from Semantic Mediawiki in order to add labels to the links from one concept to another. Another way to extract a proper knowledge graph from OKF might be to support YAML-LD in frontmatter.
OKF isn’t simply another retrieval technology; it is a human-curated, AI-assisted knowledge representation format that sits between unstructured documents and fully structured knowledge graphs.









