Skip to main content
Memory gives your Agents the ability to recall relevant information from past interactions. Unlike sessions (which store sequential history), memory enables semantic search - finding information by meaning, not just recency.

Quick Start

1

Simple Usage

2

With Configuration

Agent with Memory Search Tool

Give your Agent explicit control over memory:

Multi-Agent Shared Memory

Agents can share a memory pool:

Agent with Long-Term Memory

Persist memory across sessions:

Agent Context Building

Build context from memory for Agent prompts:

Agent Memory with Embeddings

Semantic search with vector embeddings:
The sync embed(...) / embeddings(...) functions now throw instead of returning noise — see Sync vs. Async for the async replacement.

ChromaMemory embedder default

ChromaMemory now embeds with the real async embedder by default — you get semantic similarity out of the box, no custom embedder needed.
Older versions of the SDK used a placeholder embedder that returned Math.random() vectors, so users who did not pass a custom embedder got meaningless similarity results. PraisonAI PR #4925 fixes this — upgrading gives real semantic matches silently, with no code change.
Override the default with your own embedder — the type is MaybePromise<number[]>, so sync and async both work:

Memory Configuration

Sessions

Sequential conversation history

Knowledge Base

Document-based Agent knowledge

Vector Stores

Scalable memory storage