RedisJsonVectorStoreRecordCollection<TRecord>.UpsertBatchAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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