IP Library Granted Patent US 12,596,755
Granted Patent B1
US 12,596,755 · App. 18/652,804 · Granted Apr 7, 2026

Query building using generative artificial intelligence

Inventors: Phillip Michael Carter (Redmond, WA); Tatsiana Ramankova (Bonney Lake, WA); Craig Adams Atkinson (Shoreview, MN); Sarah Jeanne Voegeli (Golden, CO)
Assignee: Hound Technology, Inc.
G06F16/9532
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,596,755
App. No.
18/652,804
Granted
Apr 7, 2026
Kind
B1
Abstract

A system and method for building queries using generative artificial intelligence (AI) is described. In an example implementation, the system may include an observability platform configured to receive a user request to use generative artificial intelligence in association with a query on an observability platform. A blob of text may be generated based on the request and include information needed to execute a valid query on the observability platform. A server may be configured to include a generative AI engine and a web service to respond to the blob of text. The observability platform may determine whether the response from the generative AI engine is a valid query, meeting a threshold quality level. User feedback may be requested from the user to determine whether the query results answered the user input for query assistance.

Claims (89)

1 . A computer-implemented method comprising:

receiving a request to use generative artificial intelligence in association with a query on an observability platform;

generating a first blob of text based on the request;

sending the first blob of text based on the request to a generative artificial intelligence web service;

receiving a response from the generative artificial intelligence web service;

generating a validated response by validating that the response meets a threshold quality level by pre-parsing and processing the response into a test query in a data serialization format and determining the response meets the threshold quality level based on applying one or more query specification rules to the test query, wherein the threshold quality level is determined to be met based, in part, on other quality criteria that is dynamically adjusted based on historical querying data, different database schemas, and user interactions with the observability platform;

executing the validated response as the query on the observability platform; and

responsive to determining that the response does not meet the threshold quality level, modifying the response to comply with one or more query specification rules,

wherein modifying the response to comply with the one or more query specification rules comprises:

pre-parsing and processing the response into a new query in the data serialization format;

identifying one or more portions of the response that prevents validating a parsed data serialization format object into a query format based, in part, on the one or more query specification rules;

modifying the one or more portions of the response to create a modified response, wherein the modifying comprises one or more of: removing the one or more portions of the response, updating the one or more portions, or inserting one or more new portions programmatically; and

executing the modified response as the query in the observability platform.

2 . The computer-implemented method of claim 1 , further comprising:

receiving user feedback on the query on the observability platform.

3 . The computer-implemented method of claim 1 , wherein the first blob of text based on the request is further generated based on:

a description of the one or more query specification rules;

a database schema of the observability platform;

a list of algorithmically-generated relevant names of columns from the database schema;

a list of domain knowledge metadata;

a list of user-provided named examples of queries;

an existing query specification;

a set of examples simulating a conversation with a generative artificial intelligence (AI) web service; and

a set of instructions to produce the query in executable programmatic code.

4 . The computer-implemented method of claim 1 , wherein the threshold quality level is determined to be met based on a set of rules known statically to constitute a valid query, a historical record of executed queries used to generate a likelihood of the response to be validly executed as the query on the observability platform, and wherein the other quality criteria is algorithmically-determined further based on historical usage, dataset schema contents, and at least one of per-user and per-organization behavior on the observability platform.

5 . The computer-implemented method of claim 1 , wherein the executed query on the observability platform is further acted upon, including at least one of naming the executed query, assigning the executed query to a collection of queries, and making the executed query a decision point that causes another action to be performed.

6 . The computer-implemented method of claim 1 , further comprising:

generating a code snippet based, in part, on the one or more query specification rules; and

inserting the code snippet into the modified response.

7 . The computer-implemented method of claim 1 , wherein the data serialization format comprises JavaScript Object Notation (JSON) format and wherein the data serialization format object comprises a JSON object.

8 . A system comprising one or more processors and memory operably coupled with the one or more processors, wherein the memory stores instructions that, in response to execution of the instructions by one or more processors, cause the one or more processors to perform operations including:

receiving a request to use generative artificial intelligence in association with a query on an observability platform;

generating a first blob of text based on the request;

sending the first blob of text based on the request to a generative artificial intelligence web service;

receiving a response from the generative artificial intelligence web service;

generating a validated response by validating that the response meets a threshold quality level by pre-parsing and processing the response into a test query in a data serialization format and determining the response meets the threshold quality level based on applying one or more query specification rules to the test query, wherein the threshold quality level is determined to be met based, in part, on other quality criteria that is dynamically adjusted based on historical querying data, different database schemas, and user interactions with the observability platform;

executing the validated response as the query on the observability platform; and

responsive to determining that the response does not meet the threshold quality level, modifying the response to comply with one or more query specification rules,

wherein modifying the response to comply with the one or more query specification rules comprises:

pre-parsing and processing the response into a new query in the data serialization format;

identifying one or more portions of the response that prevents validating a parsed data serialization format object into a query format based, in part, on the one or more query specification rules;

modifying the one or more portions of the response to create a modified response, wherein the modifying comprises one or more of: removing the one or more portions of the response, updating the one or more portions, or inserting one or more new portions programmatically; and

executing the modified response as the query in the observability platform.

9 . The system of claim 8 , wherein the operations further comprise:

receiving user feedback on the query on the observability platform.

10 . The system of claim 8 , wherein the first blob of text based on the request is further generated based on:

a description of the one or more query specification rules;

a database schema of the observability platform;

a list of algorithmically-generated relevant names of columns from the database schema;

a list of domain knowledge metadata;

a list of user-provided named examples of queries;

an existing query specification;

a set of examples simulating a conversation with a generative artificial intelligence (AI) web service; and

a set of instructions to produce the query in executable programmatic code.

11 . The system of claim 8 , wherein the threshold quality level is determined to be met based on a set of rules known statically to constitute a valid query, a historical record of executed queries used to generate a likelihood of the response to be validly executed as the query on the observability platform, and wherein the other quality criteria is algorithmically-determined further based on historical usage, dataset schema contents, and at least one of per-user and per-organization behavior on the observability platform.

12 . The system of claim 8 , wherein the executed query on the observability platform is further acted upon, including at least one of naming the executed query, assigning the executed query to a collection of queries, and making the executed query a decision point that causes another action to be performed.

13 . The system of claim 8 , wherein the operations further comprise:

generating a code snippet based, in part, on the one or more query specification rules; and

inserting the code snippet into the modified response.

14 . The system of claim 8 , wherein the data serialization format comprises JavaScript Object Notation (JSON) format and wherein the data serialization format object comprises a JSON object.

15 . One or more non-transitory computer-readable storage media storing one or more sequences of instructions which, when executed using one or more processors, cause the one or more processors to execute a method comprising:

receiving a request to use generative artificial intelligence in association with a query on an observability platform;

generating a first blob of text based on the request;

sending the first blob of text based on the request to a generative artificial intelligence web service;

receiving a response from the generative artificial intelligence web service;

generating a validated response by validating that the response meets a threshold quality level by pre-parsing and processing the response into a test query in a data serialization format and determining the response meets the threshold quality level based on applying one or more query specification rules to the test query, wherein the threshold quality level is determined to be met based, in part, on other quality criteria that is dynamically adjusted based on historical querying data, different database schemas, and user interactions with the observability platform;

executing the validated response as the query on the observability platform; and

responsive to determining that the response does not meet the threshold quality level, modifying the response to comply with one or more query specification rules,

wherein modifying the response to comply with the one or more query specification rules comprises:

pre-parsing and processing the response into a new query in the data serialization format;

identifying one or more portions of the response that prevents validating a parsed data serialization format object into a query format based, in part, on the one or more query specification rules;

modifying the one or more portions of the response to create a modified response, wherein the modifying comprises one or more of: removing the one or more portions of the response, updating the one or more portions, or inserting one or more new portions programmatically; and

executing the modified response as the query in the observability platform.

16 . The one or more non-transitory computer-readable storage media of claim 15 , wherein the method further comprises:

receiving user feedback on the query on the observability platform.

17 . The one or more non-transitory computer-readable storage media of claim 15 , wherein the first blob of text based on the request is further generated based on:

a description of the one or more query specification rules;

a database schema of the observability platform;

a list of algorithmically-generated relevant names of columns from the database schema;

a list of domain knowledge metadata;

a list of user-provided named examples of queries;

an existing query specification;

a set of examples simulating a conversation with a generative artificial intelligence (AI) web service; and

a set of instructions to produce the query in executable programmatic code.

18 . The one or more non-transitory computer-readable storage media of claim 15 , wherein the threshold quality level is determined to be met based on a set of rules known statically to constitute a valid query, a historical record of executed queries used to generate a likelihood of the response to be validly executed as the query on the observability platform, and wherein the other quality criteria is algorithmically-determined further based on historical usage, dataset schema contents, and at least one of per-user and per-organization behavior on the observability platform.

19 . The one or more non-transitory computer-readable storage media of claim 15 , wherein the method further comprises:

generating a code snippet based, in part, on the one or more query specification rules; and

inserting the code snippet into the modified response.

20 . The one or more non-transitory computer-readable storage media of claim 15 , wherein the data serialization format comprises JavaScript Object Notation (JSON) format and wherein the data serialization format object comprises a JSON object.

Assignments (1)
SECURITY INTEREST Recorded Jun 29, 2026
From: HOUND TECHNOLOGY, INC.
To: JPMORGAN CHASE BANK, N.A.
Reel/Frame 075117/0547 →
Continuity (1)
Provisional Application 63499691 · May 2, 2023
References Cited (18)
US 20130204811A1 · Morinaga · 2013 [cited by examiner]
US 20200104737A1 · Abaci · 2020 [cited by examiner]
US 20230281193A1 · Alakuijala · 2023 [cited by examiner]
US 20240127617A1 · Amamou · 2024 [cited by examiner]
US 20240296279A1 · Gardner · 2024 [cited by examiner]
US 20240303711A1 · Tan · 2024 [cited by examiner]
US 20240338361A1 · Hazel · 2024 [cited by examiner]
US 20240346021A1 · Xuan · 2024 [cited by examiner]
US 20240362019A1 · El Hattami · 2024 [cited by examiner]
US 20240362214A1 · Lyon · 2024 [cited by examiner]
US 20240362468A1 · Lee · 2024 [cited by examiner]
US 20250086213A1 · Dilipkumar · 2025 [cited by examiner]
US 20250094171A1 · Isaacson · 2025 [cited by examiner]
US 20250110976A1 · Channapattan · 2025 [cited by examiner]
US 20250321967A1 · Strader · 2025 [cited by examiner]
CN 113806502A · 2021 [cited by examiner]
Troy et al., “Enabling Generative AI to Produce SQL Statements: A Framework for the Auto-Generation of Knowledge Based on EBNF Context-Free Grammars”, In IEEE Access, vol. 11, pp. 123543-123564, 2023. (Year: 2023). [cited by examiner]
Yaghmazadeh et al., “SQLizer: Query Synthesis from Natural Language”, Proceedings of the ACM on Programming Languages, vol. 1, Issue Oopsla, Article No. 63, pp. 1-26, Oct. 2017. (Year: 2017). [cited by examiner]