# US 11,120,090 B2 · On-device query rewriting

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

- Number: US 11,120,090 B2
- Document ID: US11120090B2
- Status: Granted
- Kind: B2
- Application number: 16/505,092
- Filed: 2019-07-08
- Published: 2019-12-05
- Granted: 2021-09-14
- Earliest claimed: 2016-04-05
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: David Petrou; Matthew Sharifi
- Web page: https://patentgrep.com/patent/US11120090B2

## CPC

- G06F 16/951: Indexing; Web crawling techniques
- G06F 16/3338: {Query expansion}
- G06F 16/9032: Query formulation
- G06F 16/9535: Search customisation based on user profiles and personalisation
- G06F 40/295: Named entity recognition
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, relating to on-device query annotating. In some implementations, a search query is received, and a mobile device identifies a reference to a particular entity and a reference to a category based on the query. A model that is stored on the mobile device and stores one or more facts that are associated with one or more entities is accessed. A subset of facts from among the facts that are stored in the model for the particular entity is selected. The search query is annotated based at least on one or more facts of the subset of facts that are stored in the model for the particular entity. The annotated search query is transmitted, from the mobile device to a search engine, for processing. A result of processing the annotated search query is received by the mobile device.

## Claims

### Claim 1

A computer-implemented method comprising:
accessing a local storage of a client-side assistant device, the local storage storing data identifying entities that are other than one or more users of the client-side assistant device and data identifying relationships between the entities that are other than the one or more users of the client-side assistant device, and the data stored in the database being derived from local, spoken interactions between the one or more users and the client-side assistant device;
receiving a query at the client-side assistant device from a particular user of the client-side assistant device;
determining that the query references a particular entity that is other than the one or more users of the client-side assistant device and for which data is stored in the local storage of the client-side assistant device;
in response to determining that the query references the particular entity that is other than the one or more users of the client-side assistant device and for which data is stored in the local storage of the client-side assistant device:
determining select data about the particular entity that is other than the one or more users of the client-side assistant device and that is stored in the local storage of the client-side assistant device; and
transmitting, to a server-side assistant device and for execution, a representation of (i) the query, and (ii) the select data about the particular entity that is other than the one or more users of the client-side assistant device and that is stored in the local storage of the client-side assistant device; and
receiving, from the server-side assistant device, a response to the query that the server-side assistant device has tailored according to the select data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the representation of (i) the query, and (ii) the select data that is stored in the local storage of the client-side assistant device comprises an annotated representation of the query.

### Claim 3 (depends on 2)

The method of claim 2, comprising:
generating, by an on-device query rewrite engine of the client-side assistant device, the annotated representation of the query by generating an annotation that references the select data that is stored in the local storage of the client-side assistant device.

### Claim 4 (depends on 1)

The method of claim 1, comprising:
identifying, based on the query, a reference to the particular entity that is other than the one or more users of the client-side assistant device; and
selecting a proper subset of facts from among stored data in the local storage of the client-side assistant device.

### Claim 5 (depends on 1)

The method of claim 1, wherein the local storage of the client-side assistant device includes a model that, for each of the entities that are other than the one or more users of the client-side assistant device, stores one or more facts that associated with the entity, and wherein the select data comprises one or more facts that are associated with a particular entity associated with the query.

### Claim 6 (depends on 1)

The method of claim 1, comprising removing, by the mobile computing device, private information associated with the select data that is stored in the local storage of the client-side assistant device prior to the transmission to the server-side assistant device.

### Claim 7

At least one non-transitory computer-readable storage medium encoded with executable instructions that, when executed by at least one processor, cause the at least one processor to perform operations comprising:
accessing a local storage of a client-side assistant device, the local storage storing data identifying entities that are other than one or more users of the client-side assistant device and data identifying relationships between the entities that are other than the one or more users of the client-side assistant device, and the data stored in the database being derived from local, spoken interactions between the one or more users and the client-side assistant device;
receiving a query at the client-side assistant device from a particular user of the client-side assistant device;
determining that the query references a particular entity that is other than the one or more users of the client-side assistant device and for which data is stored in the local storage of the client-side assistant device;
in response to determining that the query references the particular entity that is other than the one or more users of the client-side assistant device and for which data is stored in the local storage of the client-side assistant device:
determining select data about the particular entity that is other than the one or more users of the client-side assistant device and that is stored in the local storage of the client-side assistant device; and
transmitting, to a server-side assistant device and for execution, a representation of (i) the query, and (ii) the select data about the particular entity that is other than the one or more users of the client-side assistant device and that is stored in the local storage of the client-side assistant device; and
receiving, from the server-side assistant device, a response to the query that the server-side assistant device has tailored according to the select data.

### Claim 8 (depends on 7)

The non-transitory computer-readable storage medium of claim 7, wherein the representation of (i) the query, and (ii) the select data that is stored in the local storage of the client-side assistant device comprises an annotated representation of the query.

### Claim 9 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, the operations comprising:
generating, by an on-device query rewrite engine of the client-side assistant device, the annotated representation of the query by generating an annotation that references the select data that is stored in the local storage of the client-side assistant device.

### Claim 10 (depends on 7)

The non-transitory computer-readable storage medium of claim 7, the operations comprising:
identifying, based on the query, a reference to the particular entity that is other than the one or more users of the client-side assistant device; and
selecting a proper subset of facts from among stored data in the local storage of the client-side assistant device.

### Claim 11 (depends on 7)

The non-transitory computer-readable storage medium of claim 7, wherein the local storage of the client-side assistant device includes a model that, for each of the entities that are other than the one or more users of the client-side assistant device, stores one or more facts that associated with the entity, and
wherein the select data comprises one or more facts that are associated with a particular entity associated with the query.

### Claim 12 (depends on 7)

The non-transitory computer-readable storage medium of claim 7, the operations comprising removing, by the mobile computing device, private information associated with the select data that is stored in the local storage of the client-side assistant device prior to the transmission to the server-side assistant device.

### Claim 13

A system comprising:
at least one processor; and
at least one computer-readable storage medium coupled to the at least one processor
having stored thereon instructions which, when executed by the at least one processor, causes the
at least one processor to perform operations comprising:
accessing a local storage of a client-side assistant device, the local storage storing data identifying entities that are other than one or more users of the client-side assistant device and data identifying relationships between the entities that are other than the one or more users of the client-side assistant device, and the data stored in the database being derived from local, spoken interactions between the one or more users and the client-side assistant device;
receiving a query at the client-side assistant device from a particular user of the client-side assistant device;
determining that the query references a particular entity that is other than the one or more users of the client-side assistant device and for which data is stored in the local storage of the client-side assistant device;
in response to determining that the query references the particular entity that is other than the one or more users of the client-side assistant device and for which data is stored in the local storage of the client-side assistant device:
determining select data about the particular entity that is other than the one or more users of the client-side assistant device and that is stored in the local storage of the client-side assistant device; and
transmitting, to a server-side assistant device and for execution, a representation of (i) the query, and (ii) the select data about the particular entity that is other than the one or more users of the client-side assistant device and that is stored in the local storage of the client-side assistant device; and
receiving, from the server-side assistant device, a response to the query that the server-side assistant device has tailored according to the select data.
