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 aspeople/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.
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.
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.
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.
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.3
Save
Select Save. Tilde tests the model, then embeds every memory in the background.
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.
- 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.
Memory tools
Agents linked to a bank get these tools. The write tools need Read and write access.
The tools describe each bank to the agent, and tell it never to store secrets, credentials, or tokens.
Who can manage memory banks CLOUDENTERPRISE
viewon a bank lets you see it and its memories.editlets you change its memories, settings, and synthesis.- Linking a bank to an agent needs
edit_memoryon the agent, plusviewon the bank for Read access, oreditfor Read and write. - Only organization administrators change embedding settings.
Requirements
Memory needs thepgvector extension, version 0.8 or later, in the gateway’s PostgreSQL. The gateway’s migration installs it.