MemorySync
Advanced / Summarize planner

Summarizing Memories

Summarizing collapses several memories into one summary record. Decide up front whether the originals stay, because that choice is irreversible once you forget them.

Planner

Plan the summarize call

Records before
6
Records after
7

Summarizing the same set again updates that summary instead of adding another one, so the count stays at one summary per set.

summary = ms.summarize(ids, lossless=False)
# summary.is_summary is True
# originals kept: 6 + 1 summary

You end with the originals plus one summary, so nothing is lost and both can be retrieved.

Rules

Rules worth following

  1. Only summarize memories that belong to the same subject and the same scope.
  2. Read the summary text before deciding to forget anything.
  3. Prefer lossless when the detail has compliance or audit value.
  4. Keep the summary id, so you can correct it later like any other record.
Copy and run

Copy a working example

ids = [4821, 4822, 4830]
summary = ms.summarize(ids, lossless=False)
print(summary.id, summary.is_summary)
# optional and permanent — only after you have read the summary
# ms.forget(ids, reason="compacted")
Was this page helpful?