Partager via


PineconeClient.FetchVectorsAsync Method

Definition

Get vectors by id

public System.Collections.Generic.IAsyncEnumerable<Microsoft.SemanticKernel.Connectors.Pinecone.PineconeDocument?> FetchVectorsAsync (string indexName, System.Collections.Generic.IEnumerable<string> ids, string indexNamespace = "", bool includeValues = false, System.Threading.CancellationToken cancellationToken = default);
abstract member FetchVectorsAsync : string * seq<string> * string * bool * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.SemanticKernel.Connectors.Pinecone.PineconeDocument>
override this.FetchVectorsAsync : string * seq<string> * string * bool * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.SemanticKernel.Connectors.Pinecone.PineconeDocument>
Public Function FetchVectorsAsync (indexName As String, ids As IEnumerable(Of String), Optional indexNamespace As String = "", Optional includeValues As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of PineconeDocument)

Parameters

indexName
String

the name of the index

ids
IEnumerable<String>

A list of ids

indexNamespace
String

The namespace to use

includeValues
Boolean

Whether to include the vector values

cancellationToken
CancellationToken

The cancellation token

Returns

A list of vector records

Implements

Applies to