Short and long term memory for a chat agent
MediumSystem design20 minSWEMLEPro outline
The question
Design memory for an assistant: a sliding window with summaries for the current session, plus long term memory across sessions. When do you summarise, and how do you retrieve old memories?
What the interviewer is looking for
- Defines triggers for summarising
- Separates session memory from durable memory
- Retrieves long term memory by relevance with limits
- Counts the token cost of tool schemas and memory
- Plans for wrong or stale memories
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported Moonshot AI (Kimi) question type: agent memory: sliding window plus summary, when to trigger it, long term memory retrieval, token cost of tool schemas.
Reported in: thejobsmap.com
Practice question written by BlogLLM based on publicly reported interview formats. Not an official Moonshot AI (Kimi) question.