IPineconeMemoryStore.UpsertBatchToNamespaceAsync 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.
Upserts a group of memory records 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.Collections.Generic.IAsyncEnumerable<string> UpsertBatchToNamespaceAsync (string indexName, string indexNamespace, System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.Memory.MemoryRecord> records, System.Threading.CancellationToken cancellationToken = default);
abstract member UpsertBatchToNamespaceAsync : string * string * seq<Microsoft.SemanticKernel.Memory.MemoryRecord> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<string>
Public Function UpsertBatchToNamespaceAsync (indexName As String, indexNamespace As String, records As IEnumerable(Of MemoryRecord), Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of String)
Parameters
- indexName
- String
The name associated with a collection of vectors.
- indexNamespace
- String
The namespace associated with a collection of embeddings.
- records
- IEnumerable<MemoryRecord>
The memory records to upsert.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The unique identifiers for the memory records.