Share 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. Gets will be made in a single request or in a single parallel batch depending on the available store functionality. Only found records will be returned, so the resultset may be smaller than the requested keys. Throws for any issues other than records not being found.

GetBatchAsync(IEnumerable<UInt64>, GetRecordOptions, CancellationToken)

Gets a batch of records from the vector store. Does not guarantee that the collection exists. Gets will be made in a single request or in a single parallel batch depending on the available store functionality. Only found records will be returned, so the resultset may be smaller than the requested keys. Throws for any issues other than records not being found.

GetBatchAsync(IEnumerable<Guid>, GetRecordOptions, CancellationToken)

Gets a batch of records from the vector store. Does not guarantee that the collection exists. Gets will be made in a single request or in a single parallel batch depending on the available store functionality. Only found records will be returned, so the resultset may be smaller than the requested keys. Throws for any issues other than records not being found.

public System.Collections.Generic.IAsyncEnumerable<TRecord> GetBatchAsync (System.Collections.Generic.IEnumerable<Guid> keys, Microsoft.SemanticKernel.Data.GetRecordOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBatchAsync : seq<Guid> * Microsoft.SemanticKernel.Data.GetRecordOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Record (requires 'Record : null)>
override this.GetBatchAsync : seq<Guid> * Microsoft.SemanticKernel.Data.GetRecordOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Record (requires 'Record : null)>
Public Function GetBatchAsync (keys As IEnumerable(Of Guid), Optional options As GetRecordOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TRecord)

Parameters

keys
IEnumerable<Guid>

The unique ids associated with the record to get.

options
GetRecordOptions

Optional options for retrieving the records.

cancellationToken
CancellationToken

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

Returns

IAsyncEnumerable<TRecord>

The records associated with the unique keys provided.

Implements

Applies to

GetBatchAsync(IEnumerable<UInt64>, GetRecordOptions, CancellationToken)

Gets a batch of records from the vector store. Does not guarantee that the collection exists. Gets will be made in a single request or in a single parallel batch depending on the available store functionality. Only found records will be returned, so the resultset may be smaller than the requested keys. Throws for any issues other than records not being found.

public System.Collections.Generic.IAsyncEnumerable<TRecord> GetBatchAsync (System.Collections.Generic.IEnumerable<ulong> keys, Microsoft.SemanticKernel.Data.GetRecordOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBatchAsync : seq<uint64> * Microsoft.SemanticKernel.Data.GetRecordOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Record (requires 'Record : null)>
override this.GetBatchAsync : seq<uint64> * Microsoft.SemanticKernel.Data.GetRecordOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Record (requires 'Record : null)>
Public Function GetBatchAsync (keys As IEnumerable(Of ULong), Optional options As GetRecordOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TRecord)

Parameters

keys
IEnumerable<UInt64>

The unique ids associated with the record to get.

options
GetRecordOptions

Optional options for retrieving the records.

cancellationToken
CancellationToken

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

Returns

IAsyncEnumerable<TRecord>

The records associated with the unique keys provided.

Implements

Applies to