Back to glossaryGLOSSARY · Concepts

Memory (Long-term)

External storage of facts, preferences, or events that persists across sessions. Usually in a vector database or structured store. The agent retrieves relevant memories at the start of each turn.

How it works

Long-term memory is implemented as a separate store. Common pattern: at session start, retrieve the user's profile and relevant past interactions; at session end, store new important facts learned. The retrieval can be vector-based (similarity search) or structured (SQL).

Example

A productivity agent remembers across sessions that you prefer morning meetings, that your preferred meeting length is 25 minutes, and that you don't take meetings on Fridays. When you ask 'schedule a call with Bob', the agent applies these preferences automatically.

Related terms

Need to actually use Memory (Long-term)?

We build production AI systems that put these concepts to work. 30 minutes, we map your use case.