Parameters
Where each
vector dictionary has the following fields:
id(int): Unique integer identifier for the vector.vector(List[float]): Embedding vector as a list of floats.item(bytes): Item contents in bytes (optional)
Exceptions
ValueError
ValueError
- Throws if the vector dimensions are incompatible with the index configuration.
- Throws if the index was not created or loaded yet.
RuntimeError
RuntimeError
- Throws if the vectors could not be upserted.
Example Usage
Upsert Secondary Overload: NumPy Array Format
- A 2D array of floats for the vector embeddings.
- A 1D array of integers for the unique IDs.
Parameters
Exceptions
ValueError
ValueError
- Throws if the vector dimensions are incompatible with the index configuration.
- Throws if the index was not created or loaded yet.
RuntimeError
RuntimeError
- Throws if the vectors could not be upserted.