Natural language security queries at Orca Security using Amazon Bedrock
AWS•Customer story••by Deniz Yilmaz, Barak Tarab, Julia Wagner, Natalie Tarasova and Saurav Hiremath•AWS Artificial Intelligence Blog
Orca Security built Discovery AI, a natural language query agent on Amazon Bedrock that converts plain-English questions into Sonar queries. The post shares the multi-stage architecture and the results: 90% lower query cost, 93% fewer input tokens, and 75% lower latency than the initial baseline.
Orca Security's Discovery AI turns plain-English questions into Sonar queries using a nine-stage pipeline on Amazon Bedrock, with per-stage model choices.
Who it is for
Security platform teams building natural language query interfaces over large structured schemas on Amazon Bedrock.
Key points
AWS reports 90% lower query cost, 93% fewer input tokens (about 2M to 140K) and 75% lower latency (about 60s to 15s) versus the initial baseline.
Claude Haiku 4.5 handles model selection and generation; Nova 2 Lite handles guardrail and validation; Titan embeddings and Cohere Rerank 3.5 handle example retrieval.
Discovery AI has handled thousands of queries per day in production since March 2026, according to the post.
AI:A step-by-step pipeline distills a frontier teacher's shopping-agent trajectories into a 4B Qwen3.5 student via SeqKD, filtered by a task scorer, trained serverlessly on SageMaker AI and served as a LoRA adapter.
AI:Grok 4.7 on Bedrock gets a reasoning-effort tradeoff: in AWS's tests, low effort used about an eighth of xhigh's output tokens while answering 15 of 18 runs versus 18 of 18.
AI:Adjudicated Query pattern: a chat agent in AWS Quick calls six bounded MCP tools over a deterministic rules engine, so pass/fail decisions stay non-AI while Bedrock is used only for exploratory clause search.