# Vector and OKF together (/docs/knowledge/retrieval/vector-and-okf)
Some questions are best answered by meaning, and others by following how ideas connect. An engine can read vector sources and OKF sources at the same time, so one question searches both.

<Callout type="info" title="Mix both kinds of source when...">
- Some content is long and loosely structured, and some is a set of clear concepts.
- Questions sometimes use different words than your content, and sometimes ask how things relate.
</Callout>

## How it works [#how-it-works]

1. **Search vector sources.** The engine finds the chunks closest in meaning to the question.
2. **Search OKF sources.** The engine finds the concepts that match the question and follows the links between them.
3. **Merge.** Results from both are combined into one ranked list.
4. **Use.** `lynk.query` writes its answer from the merged list, and `lynk.retrieve` returns it.

If the OKF search can't run, the vector results are still returned. OKF results add to an answer and never block it.

## Set it up [#set-it-up]

1. Add your sources in **Sources**, choosing **vector** for some and **OKF** for others. See [Containers](/docs/docklee/containers).
2. Link both kinds to the same engine on its **Sources** tab.

OKF sources have no dimension, so you can link them alongside vector sources of any dimension.

## Read the results [#read-the-results]

You don't change your code. `query` and `retrieve` return merged results:

<CodeTabs items={['Python', 'TypeScript']}>
  <Tab value="Python">
    ```python
    chunks = lynk.retrieve_sync("Which plans include the Atlas desk warranty?", top_k=8)
    ```
  </Tab>
  <Tab value="TypeScript">
    ```ts
    const chunks = await lynk.retrieve('Which plans include the Atlas desk warranty?', { topK: 8 });
    ```
  </Tab>
</CodeTabs>

## Next steps [#next-steps]

Your engine searches both kinds of source. Make common questions faster with Precision Mode next.

<Cards>
  <Card title="Precision Mode" href="/docs/knowledge/retrieval/precision-mode" description="Prepare answers ahead of time." />
  <Card title="Containers" href="/docs/docklee/containers" description="Vector or OKF for each source." />
  <Card title="Engines" href="/docs/docklee/engines" description="Link sources to an engine." />
</Cards>
