From the source
Amazon Bedrock introduces a query-aware compression pattern for RAG: a smaller, lower-cost model filters retrieved chunks against the user's query before the primary model generates the answer, reducing input tokens and costs while preserving answer quality.