Skip to content
Bil Arikan
Search posts and notes
Posts

Vector, graph, or a curated wiki --- how a purpose-built agent can get its knowledge

Buy me a coffee

I was researching knowledge retrieval methods for a prototype : an assistant that sits next to a sales rep during a live call. What I had used before was vector retrieval, and handing the model the documents directly (Word, PDF or Markdown).

Then I started reading about the LLM Wiki pattern and Google’s Open Knowledge Format (OKF), and about how curated knowledge is supposed to differ from RAG. Most of what I found framed it as a contest. The question I wanted answered was not “which is better” but “where does each one fit”.

Goal

  1. Test a popular claim : that a curated wiki replaces RAG.
  2. Give a practitioner a way to choose.

Working assumption

The agent has a narrow job, and its knowledge is bounded and has an owner. That is true for a sales call assistant. It is not true for every agent, and the answer changes when it is not.

Two questions that get mixed

“OKF versus RAG” bundles two separate choices into one.

How does my agent get its knowledge?

Question 1

What is stored?

Question 2

How does the agent find it?

Raw chunks

Whole documents

Curated concept pages

Similarity : vectors

Lookup : keywords, codes

Navigation : index and links

Any stored form can be paired

with any way of finding it

How does my agent get its knowledge?

Question 1

What is stored?

Question 2

How does the agent find it?

Raw chunks

Whole documents

Curated concept pages

Similarity : vectors

Lookup : keywords, codes

Navigation : index and links

Any stored form can be paired

with any way of finding it

Curation answers the first question. Retrieval answers the second. You can put vector search on top of curated pages, and you can navigate raw files with no curation at all.

The families, and how each one fails

FamilyWhat it isHow it tends to fail
Direct documents in contextHand the model the filesCosts tokens every turn, and stops scaling past a small set
Vector RAGChunk, embed, retrieve by similarityCannot tell an authoritative rule from a similar comment, and has no notion of “superseded”
Hybrid keyword plus vectorBoth signals, mergedBetter recall, same authority problem
Graph retrievalEntities and relationshipsCosts more to build, and can drift from the sources
Agentic search over filesThe agent greps and readsBurns tokens, and struggles when the naming does not match the question
Curated wiki in an open formatPages someone wrote and ownsNeeds a curator, and is capped by the quality of the documents behind it

Where the effort goes

The clearest difference I see between the families is when the work happens : once, up front, or again on every question.

Directional, my read : relative effort on a 1 to 5 scale. Not measured. For a curated wiki the up-front effort is mostly human review time, not compute.

Where “read versus rederive” holds, and where it is overstated

The pitch for a curated wiki is that the agent reads an answer someone compiled, and does not rederive it from raw chunks each time.

Where it holds :

  • Authority. A page can be the rule, not one of twelve similar passages.
  • Supersession. An old page can be retired, on purpose.
  • Inspection. A person can open the exact page the agent read, and see its history in version control.

Where it is overstated :

  • Something still selects the page. An index, a keyword search, a link. That is retrieval.
  • “Deterministic” describes the lookup. It does not describe what the model does with the page afterwards.

The vocabulary problem

Keyword search struggles when the user’s words do not match the document’s words. Vectors are the usual fix.

In the prototype I handled it with curation instead : tags written in the words reps use, and one glossary page that maps informal names to the labels on screen. Whether that scales past one team’s vocabulary is open. In my read, it is the strongest case for vectors.

Where each approach fits (my current read)

SituationLikely fitWhy
Small document set, quick prototypeDirect documents in contextFastest to try, no pipeline
Large, changing corpus without an owner (tickets, mail, archives)Vector or hybridNobody can curate it, so retrieval does the work
Questions that connect many entities (contracts, org structures, dependencies)Graph retrievalThe relationships are the answer
A narrow agent with procedural knowledge a team owns (a sales call, an order entry)Curated pages, with keyword or navigation lookupThe knowledge is bounded, task-shaped and has authority
Curated pages plus a long tail of messy questionsCurated first, vector as a fallbackCuration for the core, retrieval for what nobody wrote down

How I would choose

Yes

No, large and messy

Index and links are enough

Needs lookup by keyword or code

Needs fuzzy meaning

Yes

No

Agent with a bounded job

Is the knowledge small,

owned and curated?

Curated concept pages,

OKF-style

Raw corpus

How does the agent

find the right page?

Navigate :

index, then read

Add keyword search

over the pages

Add vector search

as a fallback

Questions that span

many documents?

Graph retrieval

Hybrid keyword

plus vector

Yes

No, large and messy

Index and links are enough

Needs lookup by keyword or code

Needs fuzzy meaning

Yes

No

Agent with a bounded job

Is the knowledge small,

owned and curated?

Curated concept pages,

OKF-style

Raw corpus

How does the agent

find the right page?

Navigate :

index, then read

Add keyword search

over the pages

Add vector search

as a fallback

Questions that span

many documents?

Graph retrieval

Hybrid keyword

plus vector

Risk or limitation (for now)

  • This is one prototype. I have no head-to-head benchmark.
  • The popular comparisons I read are mostly vendor and blog claims, including the ones that favor curated knowledge.
  • The effort chart above is my directional read, not data.
Full size