Interface IEmailEmbeddingStore
- Namespace
- MailFathom.Application.Emails.Embeddings
- Assembly
- MailFathom.Application.dll
Reads which of a message's passages still lack a vector, and writes the vectors that answer.
public interface IEmailEmbeddingStore
Remarks
The two halves are one port because they are two ends of one decision: what the read reports as outstanding is exactly what the write makes no longer outstanding, and a second implementation that answered the first question differently from the second would re-embed passages that already have vectors or leave passages without one forever.
Methods
- GetChunksAwaitingEmbeddingAsync(StoredEmailId, EmbeddingProfileId, int, CancellationToken)
Reads a bounded page of one message's passages that carry no vector under the given profile.
- SaveEmbeddingsAsync(IPersistenceSession, ActiveEmbeddingProfile, IReadOnlyList<GeneratedChunkEmbedding>, CancellationToken)
Stores the vectors one generation produced, inside the caller's open session.