# OKF in memory (/docs/okf/okf-in-memory)
Individual memories answer "what do we know about Maya?". A question like "how is Maya's team connected to the Northwind renewal?" needs the concepts behind those memories and how they relate. Docklee builds a concept graph from each memory space, using the same OKF approach as knowledge.

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

1. **Compile.** Docklee turns a memory space's memories into typed concepts and the relationships between them, with the same generation steps used for knowledge. See [Generate OKF](/docs/okf/generate-okf).
2. **Store.** The concepts are encrypted with your workspace's key and stored apart from your knowledge bundle. Knowledge and memory never share storage.
3. **Index.** Each concept is indexed for search, tagged with its memory space, so a search never crosses spaces.
4. **Recall.** When you call `lynk.recall`, Docklee searches the space's memories and its concept graph, and combines the two.

## What changes for you [#what-changes-for-you]

Nothing in your code. `lynk.recall` returns memory records as it always does. The concept graph adds related context, and if it can't be searched, recall still returns the memories themselves.

<CodeTabs items={['Python', 'TypeScript']}>
  <Tab value="Python">
    ```python
    records = lynk.recall_sync("How is Maya's team connected to the Northwind renewal?")
    ```
  </Tab>
  <Tab value="TypeScript">
    ```ts
    const records = await lynk.recall("How is Maya's team connected to the Northwind renewal?");
    ```
  </Tab>
</CodeTabs>

## Knowledge and memory stay separate [#knowledge-and-memory-stay-separate]

| | Knowledge OKF | Memory concepts |
| --- | --- | --- |
| Built from | Sources and `Dock` writes to `container="okf"` | A memory space's memories |
| Stored | Your workspace's OKF bundle | Separately, per memory space |
| Read by | Engines, through `query` and `retrieve` | `recall` on that memory space |
| Exported | Yes | No |

## Next steps [#next-steps]

You've seen OKF across knowledge and memory. Explore how memory reasons over time next.

<Cards>
  <Card title="Entities and links" href="/docs/memory/intelligence/entities-and-links" description="How memories connect." />
  <Card title="How memory works" href="/docs/memory/how-memory-works" description="Everything that happens to a memory." />
  <Card title="Recall memory" href="/docs/memory/recall-memory" description="Every recall option." />
</Cards>
