Partager via


IQdrantVectorDbClient.GetVectorsByIdAsync Method

Definition

Get vectors by their unique Qdrant IDs.

public System.Collections.Generic.IAsyncEnumerable<Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorRecord> GetVectorsByIdAsync (string collectionName, System.Collections.Generic.IEnumerable<string> pointIds, bool withVectors = false, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVectorsByIdAsync : string * seq<string> * bool * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorRecord>
Public Function GetVectorsByIdAsync (collectionName As String, pointIds As IEnumerable(Of String), Optional withVectors As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of QdrantVectorRecord)

Parameters

collectionName
String

The name assigned to the collection of vectors.

pointIds
IEnumerable<String>

The unique IDs used to index Qdrant vector entries.

withVectors
Boolean

Whether to include the vector data in the returned results.

cancellationToken
CancellationToken

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

Returns

An asynchronous list of Qdrant vectors records associated with the given IDs

Applies to