Table of Contents

Class EmbeddingReindexCancellation

Namespace
MailFathom.Application.Emails.Embeddings.Generations
Assembly
MailFathom.Application.dll

Stops a reindex, leaving the generation that was serving exactly where it was.

public sealed class EmbeddingReindexCancellation
Inheritance
EmbeddingReindexCancellation
Inherited Members

Remarks

The operation exists because a reindex is a decision an operator can regret while it is still running — the wrong model, a bill growing faster than expected — and the honest answer to that is to stop, not to wait for the switch and then pay for a second one. Nothing about retrieval changes: the generation being abandoned was never read.

Constructors

EmbeddingReindexCancellation(IEmbeddingGenerationStore, IEmbeddingProfileVectorIndex, OptimisticConcurrencyRetryPolicy, EmbeddingBackfillSchedule)

Initializes a new cancellation.

Methods

CancelAsync(CancellationToken)

Abandons the generation being built, if one is.