Partilhar via


AzureCosmosDBNoSQLVectorStoreRecordCollection<TRecord>.GetBatchAsync Method

Definition

Overloads

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