Class EmbeddingStatusReader
- Namespace
- MailFathom.Application.Emails.Embeddings.Administration
- Assembly
- MailFathom.Application.dll
Answers, in one read, whether semantic search is working on this instance and how far behind it is.
public sealed class EmbeddingStatusReader
- Inheritance
-
EmbeddingStatusReader
- Inherited Members
Remarks
Composed here rather than by whatever surface asks, because the composition is the answer: which generation serves, how much each one still owes, what the provider last did, what the budget period has spent, and when the walk next runs are five sources that only mean something together. Assembling them in the endpoint would put that reasoning in the composition root and would leave a second caller to reassemble it differently.
Constructors
- EmbeddingStatusReader(IEmbeddingGenerationStore, IEmbeddingWorkloadReader, EmbeddingSpendGate, IAiProviderHealthReader, EmbeddingBackfillSchedule)
Initializes a new reader over the state one status answer is composed from.
Methods
- ReadAsync(EmbeddingProfileIdentity?, CancellationToken)
Reads where semantic search stands on this instance.