Method UpsertBatchAsync
UpsertBatchAsync(string, IEnumerable<(string Id, float[] Vectors, MetadataCollection Metadata)>, CancellationToken)
Upserts multiple vectors with their associated metadata into the specified collection in a single batch operation.
public Task UpsertBatchAsync(string collectionIdentifier, IEnumerable<(string Id, float[] Vectors, MetadataCollection Metadata)> points, CancellationToken cancellationToken = default)
Parameters
collectionIdentifierstringThe name of the collection to upsert vectors into.
pointsIEnumerable<(string Id, float[] Vectors, MetadataCollection Metadata)>A collection of tuples containing the ID, vector data, and metadata for each point.
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- Task
A task representing the asynchronous operation.
Exceptions
- ObjectDisposedException
Thrown if the store has been disposed.
- ArgumentException
Thrown if
collectionIdentifieris null or empty.- ArgumentNullException
Thrown if
pointsis null.- ArgumentException
Thrown if
pointsis empty.- InvalidOperationException
Thrown if the upsert operation fails.