Table of Contents

Constructor StoredEmailEmbeddingGenerator

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

StoredEmailEmbeddingGenerator(IEmailEmbeddingStore, ITextEmbeddingGenerator, OptimisticConcurrencyRetryPolicy, EmbeddingSpendGate, ProviderRequestPacer, IMailOwnership, SensitiveContentEgressGuard)

Initializes a new generator of one message's embeddings.

public StoredEmailEmbeddingGenerator(IEmailEmbeddingStore embeddingStore, ITextEmbeddingGenerator textEmbeddingGenerator, OptimisticConcurrencyRetryPolicy concurrencyRetryPolicy, EmbeddingSpendGate spendGate, ProviderRequestPacer requestPacer, IMailOwnership ownership, SensitiveContentEgressGuard egressGuard)

Parameters

embeddingStore IEmailEmbeddingStore

Reads which passages lack a vector, and writes the vectors that answer.

textEmbeddingGenerator ITextEmbeddingGenerator

Turns passages into points of that space.

concurrencyRetryPolicy OptimisticConcurrencyRetryPolicy

Commits one call's vectors, retrying a conflict with a competing writer.

spendGate EmbeddingSpendGate

Says whether the period still admits a request, and is charged for the ones it does.

requestPacer ProviderRequestPacer

Holds a call back until this deployment is allowed to send its next one.

ownership IMailOwnership

Names the mailbox this message belongs to, so the spend is bounded and charged across the users it serves.

egressGuard SensitiveContentEgressGuard

States whose posture the passages leave under, so the adapter that sends them scans against it.

Exceptions

ArgumentNullException

Thrown when any argument is null.