Incremental updates for nearest neighbor search
AssigneeAmazon Technologies, Inc.
InventorsPoorna Chand Srinivas PERUMALLA, Pracheer GUPTA, Stefano STEFANI
Life of this patent
Estimating the term…
Abstract
Techniques are described for a nearest neighbor search service that enables users to perform nearest neighbor searches. The nearest neighbor search service includes an interface that enables users to create collections of searchable vectors, add and update vectors to a collection, delete vectors from a collection, and perform searches for nearest neighbors to a given vector. The nearest neighbor search service enables users to add, update, and delete vectors of a collection in real-time while also enabling users to perform searches at the same time.
Claims20
A computer-implemented method comprising:
- receiving a request to update a node associated with a vector in a graph at a frontend, the request to include a collection identifier and the vector;
- querying a collection metadata database to determine an address of a shard housing a collection of vectors including the graph based on the collection identifier;
- updating a vector database to reflect the vector being a part of the collection of vectors;
- identifying which stream of a streaming service to send the request;
- sending the request to an indexing service and a checkpointing service using the identified stream;
- and
- updating the graph using the indexing service.
A computer-implemented method comprising:
- receiving a request to perform an action on a vector in a collection of vectors at a frontend, the request to include a collection identifier and the vector;
- querying a collection metadata database to determine an address of a shard housing the collection of vectors based on the collection identifier;
- updating a vector database to reflect a status of the vector with respect to the collection of vectors;
- sending the request to an indexing service implemented by one or more computing devices;
- and
- performing an action on the vector of the collection of vectors using the indexing service.
An apparatus, comprising:
- a processor;
- a non-transitory machine-readable storage medium storing instructions which, when executed by the processor, causes the apparatus to:
- receive a request to perform an action on a vector in a collection of vectors, the request to include a collection identifier and the vector;
- query a collection metadata database to determine an address of a shard housing the collection of vectors based on the collection identifier;
- update a vector database to reflect a status of the vector with respect to the collection of vectors;
- and
- send the request to an indexing service;
- and
- perform an action on the vector of the collection of vectors using the indexing service.
Dependencies are inferred from the claim text.