AWS validates an approach to reduce RAG decision latency and costs using a decision model
Key point
AWS validated an approach that uses a decision model to handle multiple RAG decisions with low latency and low cost.
Details
- AWS tested applying a decision model to a RAG pipeline that uses probabilities to determine whether retrieval is needed, whether documents are relevant, and whether answers are supported by evidence, without generating text.
- In tests based on KorQuAD 1.0, strands-decider v2 E4B·31B and Qwen3.5-35B were compared, depending on the test, with Claude Haiku 5.5, dedicated rerankers, and others.
- When documents among the top-20 were passed through if p≥0.5, E4B retained an average of only 1.82 documents while preserving 99.30% of the relevant documents.
- The accuracy of evidence-support judgments was 0.9767 for both v2 E4B and 31B, and their decision p50 times were 80.7ms and 112.9ms, respectively, faster than Haiku 5.5 at 1,083.5ms.
Ranking and Where to Apply
- For ranking, strict Recall@1 was 0.9267 for v2 31B and 0.9100 for E4B, higher than bge-reranker-v2-m3 at 0.8867.
- However, the strands-decider reference server took 3.2~3.7 seconds to process 20 documents sequentially, making the dedicated reranker at 65.4ms more suitable for latency-sensitive paths; Qwen batch-processed with SGLang took 434.2ms.
Operational Considerations
- Probability scores can be used to adjust the acceptance threshold, or to withhold an answer and search again when no documents pass, but the threshold must be calibrated for each model and dataset.
- The article recommends v2 31B for quality-first tasks, v2 E4B for speed- and cost-first tasks, and Qwen served with SGLang where batch processing is needed; it says to validate again after changing the instructions.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.