Feature Guide Template - Mem0

Feature Guide Template

Use this when you introduce or deepen a single Mem0 capability (Graph Memory, Advanced Retrieval, etc.). Aim for crisp problem framing, a walkthrough of how the feature works, and practical configuration guidance with clear exits.

Reader Promise

Start → Middle → End Pattern

1. Start: Why this feature exists

2. Middle: How it works

  1. Feature anatomy: Diagram or bullet list of moving parts. Use a table if you need to compare modes (platform vs OSS).
  2. Configure it: Step-by-step enabling instructions with <CodeGroup> or JSON/YAML snippets. Follow each code block with a short explanation of why it matters.
  3. See it in action: End-to-end example (often reusing operation snippets). Pair code with <Info icon="check"> for expected results and <Tip> for optimization hints.

3. End: Evaluate and go deeper

Markdown Skeleton

---
title: Advanced Retrieval
description: Increase relevance with reranking, criteria filters, and context windows.
icon: "sparkles"
badge: "Advanced"
---

# Advanced Retrieval

Mem0’s advanced retrieval elevates search accuracy when basic keyword matches aren’t enough. Turn it on when you need precise context for high-stakes conversations.

<Info>
  **You’ll use this when…**
  - You need semantic ranking across long-running agents
  - Compliance requires tight control over returned memories
  - Personalization hinges on precise filters
</Info>

<Warning>
  Advanced retrieval currently applies to managed Platform projects only. Self-hosted users should rely on the OSS reranker configuration.
</Warning>

{/* Optional: remove if no diagram is needed */}
```mermaid
%% Diagram the moving parts (delete when you fill this out)
graph TD
A[Input] --> B[Feature]
B --> C[Output]

Feature anatomy

Configure it

Python

client = Client(...)
client.memories.search(criteria={...})

TypeScript

const memories = await mem0.memories.search({ criteria: { ... } });

Explain which knobs matter (e.g., rerank_top_k, criteria, filters).

OSS users can mirror this by enabling the reranker in config.yaml. Link to the integration guide if relevant.

See it in action

Walk through a real request/response. Include sample payloads and highlight notable fields.

Expect the top memory to match the user persona you set earlier. If not, revisit your filters.

Provider setup

[Provider name]

Outline configuration or link to provider docs here.

Verify the feature is working

Best practices

[**Dive Into Memory Scoring**

Understand how Mem0 ranks memories under the hood.](https://docs.mem0.ai/core-concepts/memory-types)

[**Build a Research Copilot**

See advanced retrieval driving a full knowledge assistant.](https://docs.mem0.ai/cookbooks/operations/deep-research)

Stick to this outline. Keep the “why” up front, the “how” in the middle, and the “where to go next” crystal clear at the end.