Partager via


PineconeMemoryStore.GetBatchFromNamespaceAsync Method

Definition

Gets a batch of memory records from the data store in the given namespace.

public System.Collections.Generic.IAsyncEnumerable<Microsoft.SemanticKernel.Memory.MemoryRecord> GetBatchFromNamespaceAsync (string indexName, string indexNamespace, System.Collections.Generic.IEnumerable<string> keys, bool withEmbeddings = false, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBatchFromNamespaceAsync : string * string * seq<string> * bool * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.SemanticKernel.Memory.MemoryRecord>
override this.GetBatchFromNamespaceAsync : string * string * seq<string> * bool * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.SemanticKernel.Memory.MemoryRecord>
Public Function GetBatchFromNamespaceAsync (indexName As String, indexNamespace As String, keys As IEnumerable(Of String), Optional withEmbeddings As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of MemoryRecord)

Parameters

indexName
String

The name associated with a collection of embedding.

indexNamespace
String

The namespace associated with a collection of embeddings.

keys
IEnumerable<String>

The unique ids associated with the memory record to get.

withEmbeddings
Boolean

If true, the embeddings will be returned in the memory records.

cancellationToken
CancellationToken

Cancellation token.

Returns

The memory records associated with the unique keys provided.

Implements

Applies to