Natural language security queries at Orca Security using Amazon Bedrock
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 developed Discovery AI, a natural language query agent on Amazon Bedrock that converts plain-English questions into Sonar queries, significantly reducing costs, latency, and improving accuracy.
What happened
Orca Security created Discovery AI, a natural language query agent on Amazon Bedrock that translates plain-English questions into Sonar queries, resulting in significant improvements in cost, latency, and accuracy compared to the initial baseline.
Why it matters
For AI developers and cloud security professionals, Discovery AI simplifies querying complex cloud infrastructure data without requiring deep knowledge of domain-specific query languages, making security analysis more efficient and accessible.
- Discovery AI reduces query costs and latency by leveraging Amazon Bedrock's multi-model capabilities.
- A nine-stage pipeline with RAG and schema-aware construction improves accuracy and efficiency.
- Continuous human-in-the-loop labeling ensures ongoing system improvement and adaptability.
The bigger picture
The solution enables more efficient and cost-effective querying of cloud infrastructure data, improving security analysis workflows and reducing the barrier to entry for non-expert users.
Orca Security's Discovery AI, built on Amazon Bedrock, significantly enhances the efficiency and accuracy of querying cloud infrastructure data through a multi-stage pipeline and continuous improvement mechanisms.
Technical details
- Natural language query agent
- Amazon Bedrock
- Sonar query system
- Retrieval Augmented Generation (RAG)
- Schema-aware query construction
- Nine-stage pipeline architecture
- Anthropic Claude Haiku 4.5
- Amazon Nova 2 Lite
- Amazon Titan embeddings
- Cohere Rerank 3.5
FAQ
What is Discovery AI?
Discovery AI is a natural language query agent developed by Orca Security on Amazon Bedrock that converts plain-English questions into Sonar queries for cloud infrastructure data.
What are the key benefits of Discovery AI?
Discovery AI reduces query costs by 90%, input tokens by 93%, and latency by 75%, while improving accuracy in querying complex cloud data.
How does Discovery AI work?
It uses a nine-stage pipeline with Retrieval Augmented Generation (RAG), schema-aware query construction, and continuous human-in-the-loop labeling to translate natural language into valid Sonar queries.
This summary and analysis were generated with AI from the original article and may contain errors. Read the original for the full story.
Read the full story
Originally published by AWS ML Blog on Oct 13, 2026.
Comments
Sign in to join the discussion.