update
Function
Updates the vectors in a vector database based on their IDs.
Prototype
def update(ids, dense, sparse)
Parameters
Parameter |
Data Type |
Required/Optional |
Description |
|---|---|---|---|
ids |
List[int] |
Required |
ID list to be updated. The ID list and vector list must correspond to each other. The length range of ids is [0, 10 million). |
dense |
Optional[np.ndarray] |
Required |
Dense vector returned by calling embed_documents. The value of dense cannot be None. |
sparse |
Optional[List[Dict[int, float]]] |
Optional |
Inherited from the base class. Sparse vectors are not supported. |
Parent topic: MindFAISS