# US 2025/0165466 A1 · Techniques for generating responses to search queries by interacting with multiple domains

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0165466 A1
- Document ID: US20250165466A1
- Status: Published application
- Kind: A1
- Application number: 18/903,419
- Filed: 2024-10-01
- Published: 2025-05-22
- Earliest claimed: 2023-11-22
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Jason K. TONG; Kelly SHEN
- Web page: https://patentgrep.com/patent/US20250165466A1

## CPC

- G06F 16/24522: {Translation of natural language queries to structured queries}
- G06F 16/243: {Natural language query formulation}
- G06F 16/248: Presentation of query results
- G06F 16/3329: Natural language query formulation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed herein are techniques for managing search queries that require interactions with multiple domains. For example, a method implemented by a server computing device can include the steps of (1) receiving an unstructured query from a client computing device, (2) identifying one or more domains to which the unstructured query should be routed, (3) for each domain of the one or more domains: generating, based on (i) at least one respective model of the domain, and (ii) the unstructured query, a respective structured query, and providing the respective structured query to one or more knowledge sources to generate respective results, (4) aggregating the results to produce aggregated results, (5) filtering the aggregated results to produce filtered results, and (6) causing the client computing device to display at least a portion of the filtered results.

## Claims

### Claim 1

A method, comprising, by at least one server computing device:
receiving an unstructured query from a client computing device;
identifying one or more domains to which the unstructured query should be routed;
for each domain of the one or more domains:
generating, based on (i) at least one respective model of the domain, and (ii) the unstructured query, a respective structured query, and
providing the respective structured query to one or more knowledge sources to generate respective results;
aggregating the results to produce aggregated results;
filtering the aggregated results to produce filtered results; and
causing the client computing device to display at least a portion of the filtered results.

### Claim 2 (depends on 1)

The method of claim 1, further comprising, prior to identifying the one or more domains to which the unstructured query should be routed:
providing the unstructured query to at least one model that indicates whether the unstructured query should be processed using model-based approaches or rule-based approaches, wherein the at least one model indicates that the unstructured query should be processed using model-based approaches.

### Claim 3 (depends on 1)

The method of claim 1, wherein identifying the one or more domains to which the unstructured query should be routed comprises:
providing the unstructured query to at least one model that outputs identifying information for the one or more domains.

### Claim 4 (depends on 1)

The method of claim 1, wherein each domain of the one or more domains generates the respective structured query independently from the structured queries generated by the other domains.

### Claim 5 (depends on 1)

The method of claim 1, wherein the one or more knowledge sources include:
at least one web search engine;
at least one question and answer (Q&A) knowledge source;
at least one knowledge graph;
at least one approximate nearest-neighbor (ANN) index;
at least one other LLM; or
some combination thereof.

### Claim 6 (depends on 1)

The method of claim 1, wherein:
at least one structured query includes one or more sub-questions that require respective answers to be obtained prior to generating the respective results for the at least one structured query; and
the method further comprises, for each sub-question of the one or more sub-questions:
identifying one or more second domains to which the sub-question should be routed;
for each second domain of the one or more second domains:
generating, based on (i) at least one respective model of the second domain, and (ii) the sub-question, a respective second structured query, and
providing the respective second structured query to one or more knowledge sources to generate respective second results;
aggregating the second results to produce aggregated second results;
filtering the aggregated second results to produce filtered second results; and
answering the sub-question utilizing the filtered second results.

### Claim 7 (depends on 6)

The method of claim 6, wherein each second structured query does not include any sub-questions.

### Claim 8 (depends on 6)

The method of claim 6, wherein utilizing the filtered second results to answer a given sub-question comprises:
utilizing at least one model to generate, based on the filtered second results, an output that supplants the sub-question and that is compatible with the domain associated with the at least one structured query.

### Claim 9 (depends on 6)

The method of claim 6, wherein:
filtering the aggregated results to produce the filtered results comprises:
providing (i) the unstructured query, and (ii) at least a portion of the filtered results, to at least one model to produce the filtered results; and
filtering the aggregated second results to produce the filtered second results comprises:
providing (i) the at least one structured query, and (ii) at least a portion of the filtered second results, to at least one model to produce the filtered second results.

### Claim 10 (depends on 1)

The method of claim 1, wherein:
the unstructured query is paired with at least one conversation history that is associated and received from the client computing device; and
the at least one conversation history influences a manner in which (i) the models of the one or more domains generate the structured queries, (ii) the one or more knowledge sources generate the results, or some combination thereof.

### Claim 11

A non-transitory computer readable storage medium configured to store instructions that, when executed by at least one processor included in a server computing device, cause the server computing device to carry out steps that include:
receiving an unstructured query from a client computing device;
identifying one or more domains to which the unstructured query should be routed;
for each domain of the one or more domains:
generating, based on (i) at least one respective model of the domain, and (ii) the unstructured query, a respective structured query, and
providing the respective structured query to one or more knowledge sources to generate respective results;
aggregating the results to produce aggregated results;
filtering the aggregated results to produce filtered results; and
causing the client computing device to display at least a portion of the filtered results.

### Claim 12 (depends on 11)

The non-transitory computer readable storage medium of claim 11, wherein the steps further include, prior to identifying the one or more domains to which the unstructured query should be routed:
providing the unstructured query to at least one model that indicates whether the unstructured query should be processed using model-based approaches or rule-based approaches, wherein the at least one model indicates that the unstructured query should be processed using model-based approaches.

### Claim 13 (depends on 11)

The non-transitory computer readable storage medium of claim 11, wherein identifying the one or more domains to which the unstructured query should be routed comprises:
providing the unstructured query to at least one model that outputs identifying information for the one or more domains.

### Claim 14 (depends on 11)

The non-transitory computer readable storage medium of claim 11, wherein each domain of the one or more domains generates the respective structured query independently from the structured queries generated by the other domains.

### Claim 15

A server computing device, comprising:
at least one processor; and
at least one memory storing instructions that, when executed by the at least one processor, cause the server computing device to carry out steps that include:
receiving an unstructured query from a client computing device;
identifying one or more domains to which the unstructured query should be routed;
for each domain of the one or more domains:
generating, based on (i) at least one respective model of the domain, and (ii) the unstructured query, a respective structured query, and
providing the respective structured query to one or more knowledge sources to generate respective results;
aggregating the results to produce aggregated results;
filtering the aggregated results to produce filtered results; and
causing the client computing device to display at least a portion of the filtered results.

### Claim 16 (depends on 15)

The server computing device of claim 15, wherein the steps further include, prior to identifying the one or more domains to which the unstructured query should be routed:
providing the unstructured query to at least one model that indicates whether the unstructured query should be processed using model-based approaches or rule-based approaches, wherein the at least one model indicates that the unstructured query should be processed using model-based approaches.

### Claim 17 (depends on 15)

The server computing device of claim 15, wherein identifying the one or more domains to which the unstructured query should be routed comprises:
providing the unstructured query to at least one model that outputs identifying information for the one or more domains.

### Claim 18 (depends on 15)

The server computing device of claim 15, wherein each domain of the one or more domains generates the respective structured query independently from the structured queries generated by the other domains.

### Claim 19

A method, comprising, by an application executing on a client computing device:
obtaining an unstructured query from a user of the client computing device;
in response to obtaining the unstructured query, providing the unstructured query to an operating system (OS) executing on the client computing device;
in response to providing the unstructured query to the OS, receiving filtered results associated with the unstructured query, wherein:
(1) one or more domains to which the unstructured query should be routed are identified,
(2) for each domain of the one or more domains:
a respective structured query is generated based on (i) at least one respective model of the domain, and (ii) the unstructured query, and
the respective structured query is provided to one or more knowledge sources to generate respective results, and
(3) the results are aggregated and filtered to generate the filtered results; and
in response to receiving the filtered results, performing at least one action associated with the filtered results.

### Claim 20 (depends on 19)

The method of claim 19, wherein the at least one action comprises displaying at least one user interface that includes at least one affordance associated with at least one result included in the filtered results.
