Partager via


PineconeClient.UpsertAsync Method

Definition

Upserts a list of documents

public System.Threading.Tasks.Task<int> UpsertAsync (string indexName, System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.Connectors.Pinecone.PineconeDocument> vectors, string indexNamespace = "", System.Threading.CancellationToken cancellationToken = default);
abstract member UpsertAsync : string * seq<Microsoft.SemanticKernel.Connectors.Pinecone.PineconeDocument> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.UpsertAsync : string * seq<Microsoft.SemanticKernel.Connectors.Pinecone.PineconeDocument> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Public Function UpsertAsync (indexName As String, vectors As IEnumerable(Of PineconeDocument), Optional indexNamespace As String = "", Optional cancellationToken As CancellationToken = Nothing) As Task(Of Integer)

Parameters

indexName
String

the name of the index

vectors
IEnumerable<PineconeDocument>

the list of documents

indexNamespace
String

the namespace to use

cancellationToken
CancellationToken

Returns

Implements

Applies to