Personalization and Long-Term Memory › Worked Example: A Fictional User Across Three Sessions
Language AI HandbookAll chapters Consider three sessions with a fictional user, A. Mensah. The user has enabled the food and calendar purposes.
Session 1 (Mon). A. asks for a quiet café and adds, "I don't do dairy." The food preference is stored with a 180-day expiry for this exercise. A café search could also produce an episode summary under a distinct policy. The notebook only writes the food preference.
JSONExpand
{"kind": "preference", "key": "dairy_tolerance",
"value": {"avoids": "dairy"}, "consent_scope": "personalize_food", "ttl_days": 180}Session 2 (Wed). A. says "Remember not to book me before 08:00." A verified instruction carries the account's configured time zone.
JSONExpand
{"kind": "instruction", "key": "scheduling_window",
"value": {"no_events_before": "08:00", "timezone": "Africa/Lagos"},
"consent_scope": "calendar", "ttl_days": 180}Session 3 (Fri). A. says "I'm vegetarian now, starting this month." This creates a separate dietary slot. A restaurant task can use both records because either preference can narrow the available choices on its own.
Later, A. can correct a city value without changing either preference. An explicit request to erase the dairy preference addresses that one slot and removes its retained versions in the toy store.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!