Skip to main content
The user shares a preference; the agent stores it with Mem0-backed memory for later sessions.

Mem0 and PaisonAI Integration

Mem0 is a tools to store, updated, delete and retrieve memories. https://github.com/mem0ai/mem0
Vector store backend choice matters. mem0’s MongoDB vector store has an upstream bug (mem0ai/mem0#3185) that causes searches to silently return empty. PraisonAI catches this specific TypeError and logs a warning, but recovery requires switching to Qdrant or Chroma as mem0’s vector store backend. If you need MongoDB itself, use PraisonAI’s built-in MongoDB Memory adapter instead — it is separate from mem0 and unaffected by this bug. See Memory Troubleshooting for the fix.

Quick Start

1

Install

2

Create a memory-enabled agent

Mem0 previously called EmbedChain

Best Practices

Always pass the same user_id for the same user across sessions to retrieve their memories correctly.
Store memories at the end of a session to avoid storing intermediate or incorrect information.
Search existing memories before adding new ones to avoid duplicates.
Clean up outdated memories periodically to keep retrieval accurate over time.

Custom Tools

Build your own agent tools

Tools Overview

Browse PraisonAI tool documentation