Partager via


IPineconeClient.UpdateAsync Method

Definition

Updates a vector

public System.Threading.Tasks.Task UpdateAsync (string indexName, Microsoft.SemanticKernel.Connectors.Pinecone.PineconeDocument document, string indexNamespace = "", System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : string * Microsoft.SemanticKernel.Connectors.Pinecone.PineconeDocument * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UpdateAsync (indexName As String, document As PineconeDocument, Optional indexNamespace As String = "", Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

indexName
String

The name of the index

document
PineconeDocument

The document to update

indexNamespace
String

The namespace to use

cancellationToken
CancellationToken

Cancellation Token to cancel the request.

Returns

Task of Object

Remarks

The Update operation updates vector in a namespace. If a value is included, it will overwrite the previous value. If a set_metadata is included, the values of the fields specified in it will be added or overwrite the previous value.

Applies to