Expand description
Reconstructive retrieval windows (WG-120).
Inspired by E-mem (arXiv:2601.21714): expand top-k hits into bounded local windows to preserve useful context with fewer irrelevant tokens.
Instead of returning isolated episodes/steps, return a window around each hit, maintaining temporal context.
Structs§
- Context
Window - An expanded context window around a retrieval hit.
- Retrieval
Hit - A single hit from retrieval that will be expanded into a window.
- Window
Config - Configuration for reconstructive window expansion.
- Window
Expander - Expands retrieval hits into bounded context windows.
- Window
Expansion Result - Result of window expansion containing multiple context windows.
Functions§
- merge_
overlapping_ windows - Merge overlapping windows to avoid duplicate content.