# OKF retrieval vs vector RAG (/docs/okf/okf-vs-vector)
Vector RAG and Docklee OKF retrieval are good at different questions. Vector RAG matches meaning across loose text. OKF retrieval follows how things connect. Most real knowledge benefits from both, and one engine can read both at once.

<Illustration
  src="/illustrations/okf/okf-retrieval-vs-vector-rag.webp"
  alt="On the left, vector RAG: a magnifier picks the nearest few points out of a scattered cloud. On the right, OKF retrieval: a highlighted path runs through connected concepts, from a document to a final concept."
  width={1774}
  height={887}
/>

## Where each one wins [#where-each-one-wins]

| Question | Better with | Why |
| --- | --- | --- |
| "How does A relate to B?" | OKF | It follows typed links. |
| "Who is affected if A changes?" | OKF | It walks several links in one search. |
| "Which tables hold customer data?" | OKF | It filters by concept type. |
| "What's the current policy?" | OKF | It drops superseded concepts. |
| "Find anything like this paragraph." | Vector | It matches by meaning across loose text. |
| "What did the manual say about X?" on long, unstructured text | Vector | Long prose doesn't break into clear concepts. |

When content has no real structure, vector search is the simpler choice, and OKF adds little. OKF pulls ahead as soon as relationships, types, or freshness matter.

## Side by side [#side-by-side]

| | OKF | Vector |
| --- | --- | --- |
| Stores | Concepts and typed links | Chunks and embeddings |
| Dimension | None | One per container |
| Ingest cost | Higher. Building concepts and links takes model calls. | Lower |
| Query cost | Near zero for structural questions | One embedding per question |
| Shows its reasoning | Yes, as a path of links | No |
| Portable | Yes, as an open bundle you can export | No |

## Use both [#use-both]

Link vector sources and OKF sources to the same engine, and every question searches both. The results are merged into one ranked list. See [Vector and OKF together](/docs/knowledge/retrieval/vector-and-okf).

A common split:

| Content | Container |
| --- | --- |
| Help center articles and manuals | Vector |
| Data catalog, policies, org structure, product catalog | OKF |

## Next steps [#next-steps]

You know where OKF fits. Turn your content into concepts next.

<Cards>
  <Card title="Generate OKF" href="/docs/okf/generate-okf" description="Build concepts from your content." />
  <Card title="Containers" href="/docs/docklee/containers" description="Declare a container on a write." />
  <Card title="Vector and OKF together" href="/docs/knowledge/retrieval/vector-and-okf" description="One engine, both kinds of source." />
</Cards>
