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
embeddingStoreIEmailEmbeddingStoreReads which passages lack a vector, and writes the vectors that answer.
textEmbeddingGeneratorITextEmbeddingGeneratorTurns passages into points of that space.
concurrencyRetryPolicyOptimisticConcurrencyRetryPolicyCommits one call's vectors, retrying a conflict with a competing writer.
spendGateEmbeddingSpendGateSays whether the period still admits a request, and is charged for the ones it does.
requestPacerProviderRequestPacerHolds a call back until this deployment is allowed to send its next one.
ownershipIMailOwnershipNames the mailbox this message belongs to, so the spend is bounded and charged across the users it serves.
egressGuardSensitiveContentEgressGuardStates whose posture the passages leave under, so the adapter that sends them scans against it.
Exceptions
- ArgumentNullException
Thrown when any argument is null.