It shortens retrieved context before generation so the prompt contains mostly useful information: extract only the sentences relevant to the question, summarize chunks, or use a small model to filter irrelevant passages.
Benefits: lower cost and latency, less distraction, and room for more sources; risks: dropping a crucial detail or adding a summarization error.
Evaluate it by comparing answer quality with and without compression on your test set.
Loading…