Table of Contents

Method UpsertBatchAsync

Namespace
LMKit.Data.Storage.Qdrant
Assembly
LM-Kit.NET.Data.Connectors.Qdrant.dll

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

collectionIdentifier string

The name of the collection to upsert vectors into.

points IEnumerable<(string Id, float[] Vectors, MetadataCollection Metadata)>

A collection of tuples containing the ID, vector data, and metadata for each point.

cancellationToken CancellationToken

A 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 collectionIdentifier is null or empty.

ArgumentNullException

Thrown if points is null.

ArgumentException

Thrown if points is empty.

InvalidOperationException

Thrown if the upsert operation fails.