AIToday
Large Language ModelsAI Business & IndustryAmazon AI BlogPublished: Aug 22, 2026, 04:01 JST2 min read

Amazon Bedrock adds cost-cutting compression for RAG applications

Amazon Bedrock adds cost-cutting compression for RAG applications

Key takeaway

  • Amazon Bedrock now lets builders cut RAG costs by filtering context through a cheaper model first.

  • In testing, the compression pattern reduced input tokens to the primary model to 12% of baseline and total cost to 67%, while preserving answer quality.

  • The smaller model extracts only relevant text spans, avoiding summarization that could lose precision.

3 Key Points

  1. What happened

    Amazon Bedrock now supports query-aware compression, a pattern that filters retrieved context through a smaller, cheaper model before sending it to the primary model. The smaller model (Claude Haiku) extracts only the verbatim spans relevant to the user's query, then the primary model (Claude Sonnet) generates the answer from the compressed evidence.

  2. Why it matters

    RAG applications often send thousands of input tokens to expensive models on every query. The compression pattern reduces tokens sent to the primary model to 12% of baseline, cutting total cost to 67% while maintaining answer quality. Smaller retrieved contexts also reduce hallucination risk.

  3. What to watch

    The pattern works best when retrieved context is large, the price gap between small and primary models is wide (Haiku to Sonnet), and meaningful content can be trimmed without hurting answers. Results shown are from a benchmark of 500 questions across 9 enterprise source types; your own documents and queries will differ.

Ask the AI about this article →

Context & Analysis

RAG (Retrieval Augmented Generation) applications face a cost challenge at scale: retrievers typically return 5–20 chunks, often totaling several thousand input tokens per query, all of which flow to expensive foundation models. Amazon Bedrock's query-aware compression pattern intercepts this flow with an intermediate step: a smaller, lower-cost model filters the retrieved chunks against the user's original query, outputting only the verbatim spans relevant to the question. The economics work because the savings on reduced input tokens to the primary model far outweigh the cost of running the smaller compression model, especially when the price ratio between small and large models is steep (Claude Haiku to Claude Sonnet). The pattern also reduces hallucination surface area by removing irrelevant context, an important secondary benefit for enterprise applications. Amazon Bedrock's open, composable architecture supports this as a post-retrieval customization step that layers on top of existing capabilities like prompt caching and intelligent prompt routing. The benchmark results—12% of baseline tokens and 67% of baseline cost—come from a specific corpus and query distribution; results will vary with different documents, chunk sizes, and question types.

FAQ

How much does query-aware compression reduce costs?
In the benchmark, compression alone reduced total cost to 67% of baseline, and compression combined with reranking reduced it to 64%. Token count to the primary model fell to 12% with compression and 10% with rerank-plus-compression.
What models does Amazon Bedrock use for this pattern?
The smaller compression model is Claude Haiku and the primary answer model is Claude Sonnet, both from Anthropic. The pattern works with other small/primary model pairs within a model family on Amazon Bedrock.
Does compression hurt answer quality?
The benchmark evaluated quality across four dimensions: correctness, completeness, citation accuracy, and conciseness, with faithfulness tracked separately. Results shown are from one corpus and domain; results on your own documents and queries will differ.
Amazon AI BlogRead Original Article

Get the latest Large Language Models news every morning

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytime

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

Next articleAI transforms glass fiber manufacturing as Corning, Meta seal $6B deal

The AI news that matters, in one minute each morning.

Sign up free