Design Long-Term Memory for Personalized Meta AI Conversations
Last updated: November 29, 2026
Quick Overview
Design a memory system that lets Meta AI remember useful facts a user shares across conversations, such as dietary preferences or a child's name, and use them in later answers. Cover what to store, how to retrieve it, and user control and privacy.
Meta
November 29, 20260
0
0 solved
Design a memory system that lets Meta AI remember useful facts a user shares across conversations, such as dietary preferences or a child's name, and use them in later answers. Cover what to store, how to retrieve it, and user control and privacy.
Personalization is a stated direction for Meta AI, and memory is a concrete design problem combining extraction, retrieval and privacy controls. Interviewers check how you decide what to remember, how retrieval avoids irrelevant or creepy recall, and how users see and delete memories.
What the Interviewer Expects
- Extracts candidate memories from conversations with an LLM and filters them
- Avoids storing sensitive categories unless the user explicitly asks
- Stores memories with embeddings and metadata for retrieval
- Retrieves relevant memories per turn and injects them with limited tokens
- Gives users visibility, editing and deletion, and respects regional privacy rules
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How would you handle contradictory memories, such as a user who moved cities?
- How do you evaluate whether recalling a memory helped or felt intrusive?
- Should memories from one app be used in another app?
- How do you make deletion complete, including caches and training data?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
- Store durable, useful facts (preferences, goals, important people) from user conversations with the assistant.
- Use memories when relevant to improve answers; never surface them inappropriately.
- ...
High-Level Design
- Extraction: after a conversation turn, an LLM proposes candidate memories in a structured format (subject, fact, category, confidence).
- Filter: classifier blocks sensitive categories (he...