Episodic and Semantic Memory
Tripmate knows two very different kinds of things about Asha. It knows that "Asha is vegetarian". It also knows that "in October, the Thursday sleeper to Jaipur was full, so we took the Friday train and she said it was comfortable". The first is a fact. The second is a story about something that happened. Storing them the same way makes both harder to use.
The rule
Episodic memory recalls what happened; semantic memory knows what is true.
The two terms come from how people describe human memory, and they map neatly onto agents:
- Episodic memory — records of past events, each tied to a time and situation: "15 Oct: searched Pune → Jaipur, Thursday full, booked Friday, user happy." Useful for "last time", for learning from what worked, and for explaining past actions.
- Semantic memory — general facts, true regardless of when they were learned: "Asha is vegetarian", "home station: Pune", "prefers lower or window berths". Useful on almost every request.
A user profile is the most common semantic store: a small, structured record the agent reads at the start of each session.
{
"user": "asha",
"home_station": "PUNE",
"diet": "vegetarian",
"seat_preference": "window or lower berth",
"budget_default_inr": 2500,
"updated": "2026-10-20"
}Episodes are often stored as dated entries that can be searched later. Over time, repeated episodes can be distilled into semantic facts: after three trips where Asha picked the cheaper, later train, "prefers price over speed" becomes a profile fact.