> ## Documentation Index
> Fetch the complete documentation index at: https://trytilde.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Memory banks

> Store short, durable facts that agents recall across sessions, write as they learn, and that Tilde can synthesize from conversations and wiki pages.

A memory bank is a named collection of short facts, called memories, that agents recall across sessions. Agents with write access save what they learn, and people can add, edit, and delete facts in the Tilde UI. Tilde can also read conversations and wiki pages, and keep their lasting facts in the bank. This is called synthesis.

Agents reach a bank only through a link. See [How an agent gets access](https://trytilde.ai/docs/memory/overview.md#how-an-agent-gets-access).

## How memories work

Each memory is one fact, with a title, content, and a **Kind** such as **Preferences**, **Cases**, or **Entities**. A memory can also have a path, such as `people/sam-lee`, an importance, and the time or period it holds for.

* **Facts people write are authoritative.** Agents read them, but cannot change or forget them. When a person edits a fact an agent wrote, the fact becomes theirs.
* **Changes keep history.** When a fact changes, the agent writes a new memory that supersedes the old one. A wrong fact is forgotten. Superseded and forgotten memories are no longer recalled, but stay in history.

> [!WARNING]
>
> Forgetting or deleting a memory hides it, but its content stays in its history. Delete the bank to remove its memories for good. Do not let agents store secrets in memory.

### Scope

A bank's scope decides whose memories an agent sees. You choose it when you create the bank, and you cannot change it later.

* **Shared:** the agent reads and writes every memory in the bank.
* **Per person:** the agent sees only the memories of the verified person it is acting for, plus facts people wrote for everyone. An agent acting for no verified person cannot write to the bank. See [End-user access](https://trytilde.ai/docs/iam.md#end-user-access).

## Create a bank and give it to an agent

**1. Create the bank**

Open **Memory**, and select **New bank**. Enter a **Name**, a **Description** that agents see, and a **Scope**.

**2. Link it to an agent**

Open the agent in the Agent Registry, and select **Capabilities**. In the **Memory** section, under **Other banks**, link the bank with **Read** or **Read and write** access.

To give an agent a bank of its own instead, choose **Its own bank** in the **Memory** section, pick a scope, and select **Create its own bank**.

Changes apply from the agent's next tool listing. Unlinking a bank keeps its memories.

## Manage memories

Open a bank to see its memories, arranged by path. Search them, or filter by kind, by who wrote them, and, in a per-person bank, by person. Select a memory to see its origin and history.

* **Add fact** writes a memory as a person. In a per-person bank, choose who it is **For**, or **Everyone**.
* **Edit memory** changes a fact a person wrote. On any other fact the button is **Take over and edit**.
* **Delete memory** forgets it.

The **Settings** tab holds the bank's name, description, linked agents, synthesis, and **Delete memory bank**. Deleting a bank deletes its memories and their history.

You can do the same through the management API.

## Recall by meaning

By default, `memory.recall` matches keywords. To also match by meaning, set up an embedding model:

**1. Open embedding settings**

On the **Memory** page, select **Embedding settings**.

**2. Choose a model**

Choose an **Inference connection**, such as OpenAI, Azure OpenAI, Voyage, or Cohere, a **Model**, and **Dimensions** of `1024` or `1536`. See [Inference providers](https://trytilde.ai/docs/inference-providers.md).

**3. Save**

Select **Save**. Tilde tests the model, then embeds every memory in the background.

The setting applies to every bank. In Tilde Cloud, each organization has its own. If the embedding provider fails, recall falls back to keywords.

## Synthesis

Synthesis turns conversations and wiki pages into memories. A chat model reads each new part of a source, and proposes facts to write, supersede, or forget, citing the messages or page they came from. Synthesis is off until you set it up.

**1. Choose the model**

Open the bank's **Settings** tab. Under **Synthesis**, choose an **Inference connection** and **Model**.

**2. Add instructions**

Optionally, describe what the bank should keep in **Instructions**. For example: customers' preferences and the outcome of each support case.

**3. Save**

Select **Save**. Tilde sends the model a test request first.

**4. Choose the sources**

Under **Conversations**, switch on each agent the bank should learn from. Only agents linked with **Read and write** access are listed. Under **Wikis**, choose **Learn from a wiki**.

Good to know:

* **Conversations** are read once they go quiet. Tilde starts from the point you switch learning on, not from earlier history.
* **Wiki pages** are all read when you link the wiki, then each page again when it changes. When a page is deleted, Tilde forgets the facts that came only from it.
* **Synthesis never changes or forgets a fact a person wrote.** It treats the source as data, not instructions.
* **In a per-person bank,** a conversation feeds only its verified person's memories. Facts from wiki pages are for everyone.
* **Each batch is a model call billed to the connection.** It does not appear in an agent's usage.

The **Synthesis** section shows recent batches and their status. Select **Run now** to retry at once, for example after fixing a connection, or **Turn off** to stop. Memories synthesis wrote stay when you turn it off.

## Memory tools

Agents linked to a bank get these tools. The write tools need **Read and write** access.

| Tool | What it does |
| - | - |
| `memory.recall` | Searches the agent's banks, best match first. |
| `memory.browse` | Lists the paths below a path, and the newest memories at it. |
| `memory.write` | Saves a new memory. |
| `memory.supersede` | Replaces a memory whose fact changed. |
| `memory.forget` | Forgets a memory that is wrong or no longer useful. |

The tools describe each bank to the agent, and tell it never to store secrets, credentials, or tokens.

## Who can manage memory banks CLOUDENTERPRISE

* `view` on a bank lets you see it and its memories. `edit` lets you change its memories, settings, and synthesis.
* Linking a bank to an agent needs `edit_memory` on the agent, plus `view` on the bank for **Read** access, or `edit` for **Read and write**.
* Only organization administrators change embedding settings.

See [Operator access](https://trytilde.ai/docs/operator-access.md#resource-access).

## Requirements

Memory needs the `pgvector` extension, version 0.8 or later, in the gateway's PostgreSQL. The gateway's migration installs it.

## Related pages

* [Memory and wikis overview](https://trytilde.ai/docs/memory/overview.md)
* [Wikis](https://trytilde.ai/docs/memory/wiki.md)
* [IAM](https://trytilde.ai/docs/iam.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.