Delen via


QdrantVectorStoreRecordCollection<TRecord>.GetBatchAsync Method

Definition

Overloads

GetBatchAsync(IEnumerable<Guid>, GetRecordOptions, CancellationToken)

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

Parameters

cancellationToken
CancellationToken

Returns

IAsyncEnumerable<TRecord>

Implements

Applies to

GetBatchAsync(IEnumerable<UInt64>, GetRecordOptions, CancellationToken)

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<ulong> keys, Microsoft.Extensions.VectorData.GetRecordOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBatchAsync : seq<uint64> * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Record>
override this.GetBatchAsync : seq<uint64> * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Record>
Public Overridable Function GetBatchAsync (keys As IEnumerable(Of ULong), Optional options As GetRecordOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TRecord)

Parameters

cancellationToken
CancellationToken

Returns

IAsyncEnumerable<TRecord>

Implements

Applies to