Grammar-Powered RAG for Multi-Domain Security Queries

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing security tools struggle to handle complex queries that span multiple domains in cloud security posture management and cloud native application protection, as they rely on precomputed caches and customized user interfaces that are time-consuming, error-prone, and unscalable, especially when dealing with dynamic queries involving multiple domains and predicates.

Innovation Solution

Implementing AI-powered macros that utilize a planner, executor, and aggregator to process natural language queries across domains, converting them into a structured query language (RQL) using a Large Language Model (LLM) and Information Retrieval (IR) techniques, enabling efficient and robust handling of multi-domain queries.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If precomputed caches and customized user interfaces are used to handle security queries, then query processing can be performed, but the system becomes time-consuming, error-prone, and unscalable when dealing with dynamic multi-domain queries

Engineering Contradiction:
Improvequery processing efficiencyVSAvoidhandling dynamic multi-domain queries
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent introduces an AI-powered macro system as an intermediary layer between the user and the security query infrastructure. This macro system translates natural language queries into structured domain-specific language (RQL) queries, enabling dynamic multi-domain queries without requiring precomputed caches or customized interfaces for each query type. The macro acts as a mediator that bridges the gap between user intent and system execution, improving both efficiency and adaptability.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system dynamically changes query parameters and structure based on the specific multi-domain requirements of each query. Instead of using fixed precomputed caches, the AI macro system generates queries with adaptive parameters that match the specific domains and predicates involved in each query, allowing the system to handle diverse query types efficiently without sacrificing versatility.

Inventive Principle:
Principle #35Parameter changes

2Productivity

If AI-powered macros with planner, executor, and aggregator are implemented to process natural language queries, then query processing becomes more efficient and robust, but system complexity increases

Engineering Contradiction:
Improvecross-domain search efficiencyVSAvoidsystem architecture complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The AI-powered macro system is segmented into three distinct functional components: a planner that generates query strategies, an executor that translates and runs queries, and an aggregator that consolidates results. This segmentation allows each component to specialize in its specific task, improving overall efficiency while making the complexity manageable through clear separation of concerns. Each module can be independently optimized and maintained.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Despite the segmentation into multiple components, the system maintains universality through a common interface layer that handles natural language input and standardized output formatting. The AI macro system serves multiple functions (planning, execution, aggregation) within a unified architecture, reducing the perceived complexity for users while maintaining high productivity internally.

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Measurement precision

If natural language queries are translated into structured query language using LLM and IR techniques, then query accuracy and completeness improve, but processing time and computational resources increase

Engineering Contradiction:
Improvequery translation accuracyVSAvoidquery processing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system performs preliminary actions by pre-processing and storing domain-specific knowledge, vocabularies, and query patterns in structured formats. The AI macro system has access to precompiled domain ontologies and query templates that enable faster translation of natural language to structured queries. This preliminary preparation reduces the computational burden during actual query processing, maintaining high accuracy while reducing processing time.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS20250298792A1Grammar powered retrieval augmented generation for domain specific languages
Publication Date: 2025.09.25 PALO ALTO NETWORKS INC
  • US20250298792A1 patent drawing
  • US20250298792A1 patent drawing
  • US20250298792A1 patent drawing

AI summary

Techniques for grammar powered retrieval augmented generation for domain specific languages are disclosed. In some embodiments, a system, a process, and/or a computer program product for grammar powered retrieval augmented generation for domain specific languages includes automatically generating a seed dataset for a domain specific language (DSL) (e.g., a resource query language (RQL), and wherein the RQL is generated for RQL for multi-domain security applications); expanding the seed dataset for the DSL using a Large Language Model (LLM); and validating the seed dataset for the DSL, wherein the seed dataset for the DSL is input to the LLM for fine tune training of the LLM (e.g., fine-tuned for a cloud security application).