Store episodes as structured records
public record Episode(
String userId,
Instant when,
String topic,
String summary,
Map outcome
) {} Advertisement
Time-decayed relevance
Recent episodes matter more. Bias retrieval by recency: score = similarity * exp(-days_ago / half_life).
Advertisement
Retrieval by topic + time
User asks 'what did we decide about Y?' — retrieve episodes matching topic Y, ordered by recency.