add

Function

Adds vectors to a vector database.

Prototype

@abstractmethod
def add(ids, embeddings, document_id)

Parameters

Parameter

Data Type

Required/Optional

Description

ids

List[int]

Required

Index ID list of vectors to be added. Its length range is [0, 10 million).

embeddings

ndarray

Required

NumPy array object.

document_id

Integer

Optional

ID of the document to which vectors to be added belong.