# US 2024/0202258 A1 · Processing a search query

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

- Number: US 2024/0202258 A1
- Document ID: US20240202258A1
- Status: Published application
- Kind: A1
- Application number: 18/541,471
- Filed: 2023-12-15
- Published: 2024-06-20
- Earliest claimed: 2022-12-19
- Assignees: Amadeus S.A.S.
- Applicants: Amadeus S.A.S.
- Inventors: Youri Le Toquin; Paolo Iannino
- Web page: https://patentgrep.com/patent/US20240202258A1

## CPC

- G06F 16/953: Querying, e.g. by the use of web search engines
- G06F 16/9532: Query formulation
- G06F 11/3409: {for performance assessment}
- G06F 16/3347: {using vector based model}
- G06F 16/957: Browsing optimisation, e.g. caching or content distillation
- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06N 3/08: Learning methods
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A computerized method of processing a search query using reinforcement learning is presented. The method comprises receiving a search query, determining a state vector representing a current state of processing the search query based on at least one query parameter included in the search query, determining a search response to the search query according to at least one action determined by a policy network based on the state vector, the at least one action impacting an amount of resources to be utilized for determining the search response, determining a score based on the search response, the score defining a reward given for the search response, and updating the policy network according to the score.

## Claims

### Claim 1

A computer-implemented method of processing a search query using reinforcement learning, the method comprising:
receiving a search query;
determining a state vector representing a current state of processing the search query based on at least one query parameter included in the search query;
determining a search response to the search query according to at least one action determined by a policy network based on the state vector, the at least one action impacting an amount of resources to be utilized for determining the search response;
determining a score based on the search response, the score defining a reward given for the search response; and
updating the policy network according to the score.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the search response comprises:
applying the policy network on the state vector to determine at least one action;
generating a search state by applying a search engine according to the at least one action;
as long as a stopping condition is not fulfilled:
i. updating the state vector by merging the search state with the at least one query parameter;
ii. applying the policy network on the state vector to determine at least one new action; and
iii. updating the search state by applying the search engine according to the at least one new action; and
returning at least part of the search state as the search response.

### Claim 3 (depends on 2)

The method of claim 2, wherein the at least one action comprises at least one of selecting at least one query parameter as input for the search engine, tailoring the search of the search engine to specific products and/or services, adding at least one query parameter as input for the search engine, and adding a vectorization of the search query as input for the search engine.

### Claim 4 (depends on 2)

The method of claim 2, wherein the stopping condition comprises at least one of:
a maximum number of repetitions is reached;
a maximum time for generating the search response is reached; and
a number of search results exceeds or falls below a threshold.

### Claim 5 (depends on 1)

The method of claim 1, wherein the score is determined based on at least one of:
response time of determining the at least one search response;
processor consumption of determining the at least one search response;
number of search results comprised by the search response; and
user interaction with the search response.

### Claim 6 (depends on 1)

The method of claim 1, wherein the policy network forms a part of a neural network stored at a computing device, wherein the neural network further comprises a value network, wherein a master model of the neural network is stored on a server, wherein updating the policy network according to the score comprises:
determining an update gradient for the policy network and the value network according to the score;
transmitting the update gradient to the server, wherein the master model of the neural network is updated at the server according to the update gradient;
receiving the updated neural network from the server; and
updating the policy network and the value network by the updated neural network received from the server.

### Claim 7 (depends on 6)

The method of claim 6, wherein the update gradient is transmitted to the server after having determined a respective score based on the search response.

### Claim 8 (depends on 6)

The method of claim 6, wherein the update gradient is transmitted to the server at specified time intervals and/or after a given number of determined search responses, wherein the updated gradient is an accumulated gradient learned from the determined search responses and/or during the specified time intervals.

### Claim 9 (depends on 6)

The method of claim 6, wherein the updated policy network is received from the server and the policy network is updated by the updated policy network after having transmitted the score to the server and/or at specified time-intervals.

### Claim 10 (depends on 1)

The method of claim 1, wherein a quality metric to determine the score is individually computed for or chosen at a client providing the search query.

### Claim 11 (depends on 10)

The method of claim 10, wherein the state vector comprises an identification of the client.

### Claim 12

A computing device for processing a search query using reinforcement learning being configured to:
receive a search query;
determine a state vector representing a current state of processing the search query based on at least one query parameter included in the search query;
determine a search response to the search query according to at least one action determined by a policy network based on the state vector, the at least one action impacting an amount of resources to be utilized for determining the search response;
determine a score based on the search response, the score defining a reward given for the search response; and
update the policy network according to the score.

### Claim 13 (depends on 1)

A computing system for processing a search query with reinforcement learning comprising:
a central server storing a master model of a neural network comprising a policy network and a value network; and
at least two computing devices storing each a copy of the neural network;
wherein the at least two computing devices execute the method according to claim 1 independently; and wherein the copies of the policy network and the value network are updated asynchronously by the central server based on scores and gradients determined at the at least two computing devices.

### Claim 14 (depends on 1)

A computer program product comprising program code instructions stored on at least one computer readable medium to execute the method steps according to claim 1, when said program code instructions are executed on a computer.
