Skip to main content

The problem

Your AI agent forgets everything between conversations. Users repeat themselves, context is lost, and the experience feels broken.

The solution

Memory gives your agent persistent, searchable storage for facts extracted from conversations. When a user says “I prefer dark mode” or “The client is risk-averse,” those facts are stored and can be retrieved later.

How it works

  1. Add memories - Pass conversation messages, we extract discrete facts
  2. Search memories - Query by meaning, not just keywords
  3. Filter by tags - Scope memories using 12 generic indexed tag fields
The API handles:
  • Fact extraction (turning “I like X but hate Y” into separate facts)
  • Deduplication (updating existing facts instead of creating duplicates)
  • Semantic search (finding “investment preferences” when you stored “conservative strategies”)

Quick start

Tag fields

Memory provides 12 generic indexed tag fields (tag_1 through tag_12) for filtering. You decide what each tag means for your application:
All tag fields are indexed for fast filtering. Use them for any dimension you need to query by.

Categories

The category field is free-form text - you define your own categories. Here are suggested categories for different domains:

Healthcare categories

Filtering by category

Listing memories

Deleting memories

Delete a single memory

Bulk delete by tags

Bulk delete removes all matching memories. Use with caution.

Memory events

When you add memories, the API returns what happened to each extracted fact:

Direct storage (skip extraction)

To store a fact directly without LLM extraction, set infer: false:

Custom extraction prompts

For domain-specific extraction, provide a custom prompt:

Pricing

LLM usage for fact extraction and embeddings is billed separately through the LLM service at standard rates.

LLMs

Use memories as context for chat completions

Vault

Store documents, use Memory for extracted facts