Share via


PineconeMemoryStore.UpsertToNamespaceAsync Method

Definition

Upserts a memory record into the data store in the given namespace. If the record already exists, it will be updated. If the record does not exist, it will be created.

public System.Threading.Tasks.Task<string> UpsertToNamespaceAsync (string indexName, string indexNamespace, Microsoft.SemanticKernel.Memory.MemoryRecord record, System.Threading.CancellationToken cancellationToken = default);
abstract member UpsertToNamespaceAsync : string * string * Microsoft.SemanticKernel.Memory.MemoryRecord * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.UpsertToNamespaceAsync : string * string * Microsoft.SemanticKernel.Memory.MemoryRecord * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function UpsertToNamespaceAsync (indexName As String, indexNamespace As String, record As MemoryRecord, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

indexName
String

The name associated with a collection of embeddings.

indexNamespace
String

The namespace associated with a collection of embeddings.

record
MemoryRecord

The memory record to upsert.

cancellationToken
CancellationToken

Cancellation token.

Returns

The unique identifier for the memory record.

Implements

Applies to