Share via


QdrantMemoryStore.UpsertBatchAsync Method

Definition

Upserts a group of memory records into the data store. Does not guarantee that the collection exists. If the record already exists, it will be updated. If the record does not exist, it will be created.

public System.Collections.Generic.IAsyncEnumerable<string> UpsertBatchAsync (string collectionName, System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.Memory.MemoryRecord> records, System.Threading.CancellationToken cancellationToken = default);
abstract member UpsertBatchAsync : string * seq<Microsoft.SemanticKernel.Memory.MemoryRecord> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<string>
override this.UpsertBatchAsync : string * seq<Microsoft.SemanticKernel.Memory.MemoryRecord> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<string>
Public Function UpsertBatchAsync (collectionName As String, records As IEnumerable(Of MemoryRecord), Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of String)

Parameters

collectionName
String

The name associated with a collection of vectors.

records
IEnumerable<MemoryRecord>

The memory records to upsert.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

The unique identifiers for the memory records.

Implements

Applies to