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


RedisJsonVectorStoreRecordCollection<TRecord>.GetBatchAsync Method

Definition

Gets a batch of records from the vector store. Does not guarantee that the collection exists.

public virtual System.Collections.Generic.IAsyncEnumerable<TRecord> GetBatchAsync(System.Collections.Generic.IEnumerable<string> keys, Microsoft.Extensions.VectorData.GetRecordOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBatchAsync : seq<string> * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Record>
override this.GetBatchAsync : seq<string> * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Record>
Public Overridable Function GetBatchAsync (keys As IEnumerable(Of String), Optional options As GetRecordOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TRecord)

Parameters

cancellationToken
CancellationToken

Returns

IAsyncEnumerable<TRecord>

Implements

Applies to