Table of Contents

Method DeleteFromMetadataAsync

Namespace
LMKit.Data.Storage
Assembly
LM-Kit.NET.dll

DeleteFromMetadataAsync(string, MetadataCollection, CancellationToken)

Asynchronously deletes all vector entries from the specified collection that match the provided metadata filter.

Task DeleteFromMetadataAsync(string collectionIdentifier, MetadataCollection metadata, CancellationToken cancellationToken = default)

Parameters

collectionIdentifier string

The name of the collection from which entries will be deleted.

metadata MetadataCollection

A collection of metadata key-value pairs that identifies the entries to be removed. Only entries whose metadata fully match these key-value pairs will be deleted.

cancellationToken CancellationToken

An optional token that can be used to cancel the asynchronous deletion operation.

Returns

Task

A task representing the asynchronous deletion operation.

DeleteFromMetadataAsync(string, MetadataFilter, CancellationToken)

Asynchronously deletes all vector entries from the specified collection whose metadata satisfies the given filter expression.

Task DeleteFromMetadataAsync(string collectionIdentifier, MetadataFilter filter, CancellationToken cancellationToken = default)

Parameters

collectionIdentifier string

The name of the collection from which entries will be deleted.

filter MetadataFilter

The filter expression to evaluate against each entry's metadata. Supports typed comparisons (eq, ne, gt, gte, lt, lte, in, nin, exists) combined with and/or; see MetadataFilter for the exact matching semantics. Must not be null.

cancellationToken CancellationToken

An optional token that can be used to cancel the asynchronous deletion operation.

Returns

Task

A task representing the asynchronous deletion operation.

Share