MongoDBMemoryStore.RemoveBatchAsync Method

Definition

Removes a batch of memory records from the data store. Does not guarantee that the collection exists.

public System.Threading.Tasks.Task RemoveBatchAsync (string collectionName, System.Collections.Generic.IEnumerable<string> keys, System.Threading.CancellationToken cancellationToken = default);

Parameters

collectionName
String

The name associated with a collection of embeddings.

keys
IEnumerable<String>

The unique ids associated with the memory record to remove.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

Implements

Applies to