Orca Security builds Discovery AI natural language security queries on Amazon Bedrock
An AWS Machine Learning Blog post describes Discovery AI, a natural-language query agent that Orca Security built with AWS on Amazon Bedrock to turn plain-language questions into filters for its Sonar query system. Sonar spans more than 900 cloud infrastructure and application models, 18 operators and nested parent-child relationships, which previously required users to hand-write JSON queries. Orca reports that compared with its initial prototype, which loaded the full schema into one prompt, input tokens per workload fell 93 percent from roughly 2 million to 140,000, cost fell 90 percent and end-to-end latency fell 75 percent from about 60 seconds to 15 seconds. The pipeline pairs retrieval-augmented example retrieval with schema-aware generation and splits models by stage: Anthropic Claude Haiku 4.5 for model selection and query generation, Amazon Nova 2 Lite for guardrails and validation, Amazon Titan for embeddings and Cohere Rerank 3.5 for reranking. Orca says Discovery AI has handled thousands of queries per day in production since March 2026.
The post lays out a multi-stage retrieval and validation-retry design for converting natural language into strict schema queries, showing where example retrieval and per-stage model allocation matter.
Security analysts need fast answers about their cloud infrastructure without deep familiarity with domain-specific query languages. Orca Security’s tool covers over 900 cloud models (the resource types Sonar tracks, such as an Amazon Elastic Compute Cloud (Amazon EC2) instance or an Amazon Simple Storage Service (Amazon S3) bucket). Querying that data required precise model names, nested relationship navigation, and selection from 18 operators (comparison functions like equals or contains used to filter results).
To solve this, Orca Security partnered with AWS to build Discovery AI, a natural language query agent on Amazon Bedrock. Orca provides context-aware security for cloud, code, and AI, and Sonar is its domain-specific query system where users search, filter, and explore across the entire data graph.
In this post, we share the architecture and results of Discovery AI, which converts a natural language question into a Sonar query. As a result, Orca reduced query costs by 90 percent, input tokens by 93 percent, and latency by 75 percent compared to the initial baseline.
Bridging natural language and structured queries
Orca Security’s Sonar query system supports 900+ cloud infrastructure and application models with complex relationships between them. To query this data, users construct JSON objects that specify exact model names, select from 18 operators, and navigate parent-child hierarchies across cloud providers. Doing this well requires deep familiarity with the Sonar schema.
#Orca Security#Discovery AI#Sonar#Amazon Bedrock#Anthropic Claude Haiku 4.5#Amazon Nova 2 Lite#Amazon Titan#Cohere Rerank 3.5#AWS