Constructor StoredEmailEmbeddingBackfill
- Namespace
- MailFathom.Application.Emails.Embeddings.Backfill
- Assembly
- MailFathom.Application.dll
StoredEmailEmbeddingBackfill(IActiveEmbeddingProfileReader, IStoredEmailEmbeddingBackfillStore, StoredEmailEmbeddingGenerator, OptimisticConcurrencyRetryPolicy, StoredEmailEmbeddingBackfillOptions)
Initializes a new embedding backfill.
public StoredEmailEmbeddingBackfill(IActiveEmbeddingProfileReader profileReader, IStoredEmailEmbeddingBackfillStore backfillStore, StoredEmailEmbeddingGenerator embeddingGenerator, OptimisticConcurrencyRetryPolicy concurrencyRetryPolicy, StoredEmailEmbeddingBackfillOptions options)
Parameters
profileReaderIActiveEmbeddingProfileReaderAnswers whether this instance embeds at all, and into which vector space.
backfillStoreIStoredEmailEmbeddingBackfillStoreReads what remains and writes both the passages and the position a run produced.
embeddingGeneratorStoredEmailEmbeddingGeneratorBrings one message up to date, which is the same unit of work the live worker performs.
concurrencyRetryPolicyOptimisticConcurrencyRetryPolicyCommits a write, retrying a conflict with a competing writer.
optionsStoredEmailEmbeddingBackfillOptionsBounds one run.
Exceptions
- ArgumentNullException
Thrown when any argument is null.