PineconeClient.FetchVectorsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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