Orca 基于 Amazon Bedrock 构建自然语言安全查询
AWS 机器学习博客介绍了 Orca Security 与 AWS 合作打造的 Discovery AI,这是一个运行在 Amazon Bedrock 上的自然语言查询智能体,可将用户的自然语言问题转换为 Orca Sonar 专有查询系统的过滤条件。Sonar 覆盖 900 多种云资源模型、18 种运算符以及复杂的父子层级关系,原先需要用户自行编写 JSON 查询。Orca 报告称,相比最初将完整 schema 塞入单次提示的原型,新方案把每次工作负载的输入 token 从约 200 万降至约 14 万(下降 93%),成本下降 90%,端到端响应时间从约 60 秒降至 15 秒(下降 75%)。该流水线采用 RAG 示例检索加 schema 感知生成,按阶段分配不同模型:Anthropic Claude Haiku 4.5 负责模型选择与查询生成,Amazon Nova 2 Lite 负责护栏与校验,Amazon Titan 提供向量嵌入,Cohere Rerank 3.5 负责重排。Orca 表示 Discovery AI 自 2026 年 3 月起已在生产环境每天处理数千次查询。
该文公开了一套多阶段 RAG 加逐级校验重试的工程方案,说明把自然语言稳定转换为严格 schema 查询需要在检索示例、分阶段选型和校验回环上做取舍。
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