Table of Contents

Method EmbedAsync

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

EmbedAsync(StoredEmailId, CancellationToken)

Embeds whatever of one message is not yet embedded under the active profile.

public Task<StoredEmailEmbeddingRun> EmbedAsync(StoredEmailId storedEmailId, CancellationToken cancellationToken)

Parameters

storedEmailId StoredEmailId

The message to bring up to date.

cancellationToken CancellationToken

Cancels the turn between calls and between commits.

Returns

Task<StoredEmailEmbeddingRun>

How the turn ended, and how many passages it committed vectors for.

Exceptions

PersistenceConcurrencyConflictException

Thrown when a competing writer wins a race the bounded retries could not resolve. Vectors already committed stay durable and the passages they cover are no longer outstanding.

OperationCanceledException

Thrown when the caller cancels or the host is shutting down. Committed vectors stay durable.