Generative Agents (Park et al., 2023) retrieve memories by a mix of recency, importance and relevance. Recency decays exponentially with time since the memory was last used, so recent experiences come back first.
Implement recency_score(hours, decay), returning decay ** hours.
Raise the decay factor to the power of the elapsed hours.
No results yet
Run your code to check it against the examples, or submit to run every test.