Location-based recommendations using nearest neighbors in a locality sensitive hashing (LSH) index
First Claim
1. A method, comprising operations of:
- creating an index of a plurality of buckets for locality sensitive hashing (LSH), wherein each bucket includes one or more word or phrase embeddings derived from a corpus of documents that describe entities associated with geographic locations;
storing the index in an in-memory database of key-value pairs;
creating, on a mobile device, a cache backed by the in-memory database, wherein the cache is in-memory;
using a short text to create a query embedding;
mapping the query embedding to corresponding buckets in the index and determining which of the corresponding buckets are nearest neighbors to the query embedding using a similarity measure;
displaying location types associated with each of the buckets that are nearest neighbors in a view in a graphical user interface (GUI) on the mobile device and receiving a user selection as to one of the buckets; and
displaying the entities for a selected location type in a GUI view on the mobile device, wherein each operation is performed by one or more processors.
5 Assignments
0 Petitions
Accused Products
Abstract
Software for a website hosting short-text services creates an index of buckets for locality sensitive hashing (LSH). The software stores the index in an in-memory database of key-value pairs. The software creates, on a mobile device, a cache backed by the in-memory database. The software then uses a short text to create a query embedding. The software map the query embedding to corresponding buckets in the index and determines which of the corresponding buckets are nearest neighbors to the query embedding using a similarity measure. The software displays location types associated with each of the buckets that are nearest neighbors in a view in a graphical user interface (GUI) on the mobile device and receives a user selection as to one of the location types. Then the software displays the entities for the selected location type in a GUI view on the mobile device.
-
Citations
20 Claims
-
1. A method, comprising operations of:
-
creating an index of a plurality of buckets for locality sensitive hashing (LSH), wherein each bucket includes one or more word or phrase embeddings derived from a corpus of documents that describe entities associated with geographic locations; storing the index in an in-memory database of key-value pairs; creating, on a mobile device, a cache backed by the in-memory database, wherein the cache is in-memory; using a short text to create a query embedding; mapping the query embedding to corresponding buckets in the index and determining which of the corresponding buckets are nearest neighbors to the query embedding using a similarity measure; displaying location types associated with each of the buckets that are nearest neighbors in a view in a graphical user interface (GUI) on the mobile device and receiving a user selection as to one of the buckets; and displaying the entities for a selected location type in a GUI view on the mobile device, wherein each operation is performed by one or more processors. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. One or more non-transitory computer-readable media persistently, storing instructions that, when executed by a processor, perform the following operations:
-
creating an index of a plurality of buckets for locality sensitive hashing (LSH), wherein each bucket includes one or more word or phrase embeddings derived from a corpus of documents that describe entities associated with geographic locations; storing the index in an in-memory database of key-value pairs; creating, on a mobile device, a cache backed by the in-memory database, wherein the cache is in-memory; using a short text to create a query embedding; map the query embedding to corresponding buckets in the index and determine which of the corresponding buckets are nearest neighbors to the query embedding using a similarity measure; display location types associated with each of the buckets that are nearest neighbors in a view in a graphical user interface (GUI) on the mobile device and receive a user selection as to one of the buckets; and display the entities for a selected location type in a GUI view on the mobile device. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A method, comprising operations of:
-
creating an index of a plurality of buckets for locality sensitive hashing (LSH), wherein each bucket includes one or more word or phrase embeddings derived, using a continuous distribution model, from a corpus of documents that describe entities associated with geographic locations; storing the index in an in-memory database of key-value pairs; creating, on a mobile device, a cache backed by the in-memory database, wherein cache is in-memory; using a short text to create a query embedding; mapping the query embedding to corresponding buckets in the index and determining which of the corresponding buckets are nearest neighbors to the query embedding using cosine similarity, city-block similarity, or Euclidian similarity; displaying location types associated with each of the buckets that are nearest neighbors in a view in a graphical user interface (GUI) on the mobile device and receiving a user selection as to one of the buckets; and displaying the entities for a selected location type in a GUI view on the mobile device, wherein the each operation is performed by one or more processors. - View Dependent Claims (20)
-
Specification