Поделиться через


RedisJsonVectorStoreRecordCollection<TRecord>.UpsertBatchAsync Method

Definition

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

public virtual System.Collections.Generic.IAsyncEnumerable<string> UpsertBatchAsync(System.Collections.Generic.IEnumerable<TRecord> records, System.Threading.CancellationToken cancellationToken = default);
abstract member UpsertBatchAsync : seq<'Record> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<string>
override this.UpsertBatchAsync : seq<'Record> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<string>
Public Overridable Function UpsertBatchAsync (records As IEnumerable(Of TRecord), Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of String)

Parameters

records
IEnumerable<TRecord>
cancellationToken
CancellationToken

Returns

Implements

Applies to