Summaries
Summaries are lossy. Information from earlier messages is gradually displaced by newer information. We do not recommend relying solely on the Memory API’s summary
value to ground the LLM in a conversation. Use relevant_facts
instead.
A summary for the last or trailing N
messages is generated on every new message added to a Session. This is done asynchronously and does not impact the latency of your requests to Zep.
![List of Summaries](https://fdr-prod-docs-files-public.s3.amazonaws.com/zep.docs.buildwithfern.com/2024-07-25T16:49:45.836Z/images/summaries.png)
The first summary is generated after the first N
messages are added to a Session.
N
is a configurable get memory argument. The default value is 4.
Customizing Summary Generation
Available to Enterprise Plan customers only.
You can customize the contents and format of summaries by providing Custom Instructions when persisting a Memory to a Session.
Accessing Summaries
Summaries are added to Memory responses when you retrieve a Session’s Memory. They’re also accessible the Search API and lower-level Session API.