Table of Contents

Constructor EmbeddingReindexCancellation

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

EmbeddingReindexCancellation(IEmbeddingGenerationStore, IEmbeddingProfileVectorIndex, OptimisticConcurrencyRetryPolicy, EmbeddingBackfillSchedule)

Initializes a new cancellation.

public EmbeddingReindexCancellation(IEmbeddingGenerationStore generationStore, IEmbeddingProfileVectorIndex vectorIndex, OptimisticConcurrencyRetryPolicy concurrencyRetryPolicy, EmbeddingBackfillSchedule backfillSchedule)

Parameters

generationStore IEmbeddingGenerationStore

Reads which generation is being built and abandons it.

vectorIndex IEmbeddingProfileVectorIndex

Removes the approximate index the abandoned generation would have been searched through.

concurrencyRetryPolicy OptimisticConcurrencyRetryPolicy

Commits the transition, retrying a conflict with a competing writer.

backfillSchedule EmbeddingBackfillSchedule

Brings the next upkeep pass forward, which is the pass that removes what the abandoned generation holds.

Exceptions

ArgumentNullException

Thrown when any argument is null.