docs/templates/feature_guide_template.mdx
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.
title, description, icon, optional badge (e.g., “Advanced”).<Info> block titled “You’ll use this when…” with 3 bullets (user persona, workload, expected benefit).<Warning> so readers don’t get surprised later.## Configure access snippet (even if it’s “Confirm your Mem0 API key is already configured”) so contributors never forget to mention the baseline setup.<CodeGroup> or JSON/YAML snippets. Follow each code block with a short explanation of why it matters.<Info icon="check"> for expected results and <Tip> for optimization hints.<Note> blocks for cross-links (e.g., “Also available via REST endpoint /v1/...”).## Verify the feature is working section with bullets (metrics, logs, dashboards).## Best practices or ## Tuning tips (3–4 bullets max).<AccordionGroup> with one <Accordion> per provider) so readers can expand what they need without scrolling walls of configuration.---
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>
```mermaid
%% Diagram the moving parts (delete when you fill this out)
graph TD
A[Input] */} B[Feature]
B */} C[Output]
const memories = await mem0.memories.search({ criteria: { ... } });
Explain which knobs matter (e.g., rerank_top_k, criteria, filters).
Walk through a real request/response. Include sample payloads and highlight notable fields.
<Info icon="check"> Expect the top memory to match the user persona you set earlier. If not, revisit your filters. </Info>reranker_applied: true.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.