# US 2025/0094400 A1 · Deploying a vector index on multiple nodes of a cluster

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

- Number: US 2025/0094400 A1
- Document ID: US20250094400A1
- Status: Published application
- Kind: A1
- Application number: 18/885,640
- Filed: 2024-09-14
- Published: 2025-03-20
- Earliest claimed: 2023-09-16
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Aurosish Mishra; Shasank Kisan Chavan; Agnivo Saha; Shubha Bose; Chinmayi Krishnappa; Tirthankar Lahiri
- Web page: https://patentgrep.com/patent/US20250094400A1

## CPC

- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 16/2228: {Indexing structures}
- G06F 16/2237: {Vectors, bitmaps or matrices}
- G06F 16/2246: {Trees, e.g. B+trees}
- G06F 16/2358: {Change logging, detection, and notification (replication G06F16/27)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for deploying a vector index on multiple nodes of a cluster are provided. In one technique, an instruction is received to create a vector index on a set of vectors that is stored in a vector database that is connected to the multiple nodes. In response, an HNSW index is created based on the set of vectors and the HNSW index is stored on each node. In response to receiving a vector query, a node processes the vector query against its copy of the HNSW index. In another technique, each node retrieves, from a vector database, a respective subset of a set of vectors and generates, based on the respective subset, a respective HNSW index. A vector query is transmitted to each node, which traverses its HNSW index to generate results of the vector query. The results from each node are combined to generate final results.

## Claims

### Claim 1

A method comprising:
receiving an instruction to create a vector index on a set of vectors that is stored in a vector database that is communicatively coupled to a plurality of nodes in a cluster;
in response to receiving the instruction:
creating an HNSW index based on the set of vectors;
causing a copy of the HNSW index to be stored in memory of each node in the plurality of nodes;
in response to receiving a first vector query, processing, by a first node in the plurality of nodes, the first vector query against a first copy of the HNSW index;
in response to receiving a second vector query, processing, by a second node in the plurality of nodes, the second vector query against a second copy of the HNSW index;
wherein the method is performed by one or more computing devices.

### Claim 2 (depends on 1)

The method of claim 1, wherein:
creating the HNSW index comprises creating, by a particular node in the plurality of nodes, the HNSW index;
causing the copy of the HNSW index to be stored comprises:
causing, by the particular node, the copy to be stored in the vector database, and
retrieving, by other nodes in the plurality of nodes, the copy from the vector database.

### Claim 3 (depends on 1)

The method of claim 1, wherein creating the HNSW index based on the set of vectors comprises:
for each node in the plurality of nodes:
reading, by said each node, a copy of the set of vectors from the vector database into local memory of said each node;
creating, by said each node, a copy of the HNSW index based on the copy of the set of vectors.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
processing, by the first node, a first transaction that causes a set of changes to one or more vectors in the set of vectors;
causing, by the first node, the set of changes to be stored in the vector database;
in response to receiving a third vector query:
reading, by the second node, from the vector database, the set of changes;
processing, by the second node, the third vector query based on the set of changes.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
determining, by the first node, that the first node is a primary node;
determining, by the first node, to create a snapshot of the HNSW index;
causing a version of the snapshot to be stored in memory of each node of the plurality of nodes.

### Claim 6 (depends on 5)

The method of claim 5, wherein causing the version of the snapshot to be stored comprises:
creating, by the first node, the snapshot of the HNSW index;
causing, by the first node, the snapshot to be stored in the vector database;
retrieving, by other nodes in the plurality of nodes, from the vector database, the snapshot.

### Claim 7 (depends on 5)

The method of claim 5, wherein causing the version of the snapshot to be stored comprises:
determining, by the first node, a build timestamp for the snapshot of the HNSW index;
causing, by the first node, the build timestamp to be transmitted to each other node in the plurality of nodes;
creating, by each node in the plurality of nodes, on said each node, a new snapshot based on the build timestamp.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
in response to determining that a particular node in the plurality of nodes is or is about to be offline:
determining whether the particular node is a primary node for the HNSW index;
in response to determining that the particular node is the primary node for the HNSW index, selecting another node in the plurality of nodes to be the new primary node for the HNSW index.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
prior to determining that the particular node is or is about to be offline, storing, on each node of the plurality of nodes, an ordered list of nodes for the HNSW index;
wherein selecting the other node comprises, reading, by the other node, the ordered list to determine that the other node is the new primary node for the HNSW index.

### Claim 10 (depends on 8)

The method of claim 8, wherein selecting the other node comprises:
checking, by the other node, a global enqueue;
in response to determining that the other node was first to acquire the global enqueue, determining, by the other node, that the other node is the new primary node for the HNSW index.

### Claim 11

A method comprising:
for each node of a plurality of nodes in a cluster:
retrieving, from a vector database, a respective subset of a set of vectors that is stored;
based on the respective subset, generating, by said each node, a respective HNSW index;
in response to receiving a vector query, transmitting the vector query to each node in the plurality of nodes;
for each node of the plurality of nodes, traversing the HNSW index that is stored on said each node to generate results of the vector query;
combining the results of the vector query from each node of the plurality of nodes to generate final results.

### Claim 12 (depends on 11)

The method of claim 11, wherein the results of the vector query, generated by each node of the plurality of nodes are Top K results, wherein the final results are Top K results.

### Claim 13 (depends on 11)

The method of claim 11, further comprising:
generating home location data that indicates which subset of the set of vectors is stored on each node of the plurality of nodes;
causing the home location data to be stored on each node of the plurality of nodes.

### Claim 14

One or more non-transitory storage media storing instructions which, when executed by one or more computing devices, cause:
receiving an instruction to create a vector index on a set of vectors that is stored in a vector database that is communicatively coupled to a plurality of nodes in a cluster;
in response to receiving the instruction:
creating an HNSW index based on the set of vectors;
causing a copy of the HNSW index to be stored in memory of each node in the plurality of nodes;
in response to receiving a first vector query, processing, by a first node in the plurality of nodes, the first vector query against a first copy of the HNSW index;
in response to receiving a second vector query, processing, by a second node in the plurality of nodes, the second vector query against a second copy of the HNSW index.

### Claim 15 (depends on 14)

The one or more storage media of claim 14, wherein:
creating the HNSW index comprises creating, by a particular node in the plurality of nodes, the HNSW index;
causing the copy of the HNSW index to be stored comprises:
causing, by the particular node, the copy to be stored in the vector database, and
retrieving, by other nodes in the plurality of nodes, the copy from the vector database.

### Claim 16 (depends on 14)

The one or more storage media of claim 14, wherein creating the HNSW index based on the set of vectors comprises:
for each node in the plurality of nodes:
reading, by said each node, a copy of the set of vectors from the vector database into local memory of said each node;
creating, by said each node, a copy of the HNSW index based on the copy of the set of vectors.

### Claim 17 (depends on 14)

The one or more storage media of claim 14, further comprising:
processing, by the first node, a first transaction that causes a set of changes to one or more vectors in the set of vectors;
causing, by the first node, the set of changes to be stored in the vector database;
in response to receiving a third vector query:
reading, by the second node, from the vector database, the set of changes;
processing, by the second node, the third vector query based on the set of changes.

### Claim 18 (depends on 14)

The one or more storage media of claim 14, further comprising:
determining, by the first node, that the first node is a primary node;
determining, by the first node, to create a snapshot of the HNSW index;
causing a version of the snapshot to be stored in memory of each node of the plurality of nodes.

### Claim 19 (depends on 14)

The one or more storage media of claim 14, further comprising:
in response to determining that a particular node in the plurality of nodes is or is about to be offline:
determining whether the particular node is a primary node for the HNSW index;
in response to determining that the particular node is the primary node for the HNSW index, selecting another node in the plurality of nodes to be the new primary node for the HNSW index.

### Claim 20 (depends on 11)

One or more non-transitory storage media storing instructions which, when executed by one or more computing devices, cause performance of the method recited in claim 11.
