Orca Security says a nine-stage pipeline cut its Bedrock agent's cost 90% and latency from 60 to 15 seconds
AWS published a customer post on 13 October 2026, co-written with Orca Security, about Discovery AI, an agent that turns plain-English questions into queries over Orca's cloud-security data. Orca says its first version loaded the whole schema into one prompt on the largest model, at about 2 million input tokens and 60 seconds per workload. The production version uses about 140,000 tokens and 15 seconds, and Orca says cost fell 90%.
Why it matters: If your CFO asks what an answer costs, Orca's savings came mostly from sending less, not from one cheaper model. Per the post: compact summaries of 900+ resource types replaced the full schema, five reranked examples replaced a large dump, and regex rules answer obvious patterns such as IP addresses and CVE IDs with no model call. Small models, Amazon Nova 2 Lite and Claude Haiku 4.5, handle screening and checking.
Zoom out: Orca calls example retrieval its biggest accuracy lever. It compared plain top-K search, which returned near-duplicates, with diversity-weighted search, which lost relevance when the top hit was right. Retrieving 20 examples and reranking to five won.
The catch: This is a vendor-published, single-company account. It gives no pass rate or size for the evaluation set, and the grader is itself a language model. The 90% is measured against Orca's own deliberately heavy prototype, with no dollars per query. It also gives no count of failed or blocked requests.
What to do: Pull a week of your busiest agent's logs and sort by input tokens per request. Take the biggest prompt, replace the pasted reference material with retrieval of the five best matches, and run both versions on 100 real questions with known answers. Compare pass rate and cost per request before you pay for a larger model.
Our coverage →AWS Machine Learning Blog: Natural language security queries at Orca Security using Amazon Bedrock (13 October 2026, vendor-published, co-written with Orca) ↗