Parameters
Parameter | Type | Description |
---|---|---|
vectors | Array2D<float> | 2D container with vector embeddings to index. |
ids | std::vector<uint64_t> | Unique identifiers for each vector. |
items | std::vector<std::vector<uint8_t>> | (Optional) Item contents in bytes. |
Exceptions
std::invalid_argument
std::invalid_argument
- Throws if vector dimensions are incompatible with the index configuration.
- Throws if index was not created or loaded yet.
- Throws if there is a mismatch between the number of
vectors
,ids
oritems
.
std::runtime_exception
std::runtime_exception
- Throws if the vectors could not be upserted.