Constructor EmbeddingStatus
- Namespace
- MailFathom.Application.Emails.Embeddings.Administration
- Assembly
- MailFathom.Application.dll
EmbeddingStatus(ReplicaIdentity, EmbeddingProfileIdentity?, EmbeddingGenerationProgress?, EmbeddingGenerationProgress?, AiProviderHealth, EmbeddingSpendPeriod, DateTimeOffset?, AttachmentDerivationStatus)
Whether semantic search is working on this instance, and where it is if it is not yet.
public EmbeddingStatus(ReplicaIdentity Replica, EmbeddingProfileIdentity? Declared, EmbeddingGenerationProgress? Serving, EmbeddingGenerationProgress? Building, AiProviderHealth ProviderHealth, EmbeddingSpendPeriod Period, DateTimeOffset? NextBackfillPassDueAt, AttachmentDerivationStatus AttachmentDerivation)
Parameters
ReplicaReplicaIdentityThe replica that composed this answer, which the two members only one process can answer for are read against.
DeclaredEmbeddingProfileIdentityThe geometry configuration declares, or null on an instance that declared no provider.
ServingEmbeddingGenerationProgressThe generation searches are answered from, or null when this instance has activated none.
BuildingEmbeddingGenerationProgressThe generation a reindex is filling, or null when no reindex is running.
ProviderHealthAiProviderHealthWhat the last call to the embedding provider established about it, as the replica that answered saw it.
PeriodEmbeddingSpendPeriodWhere the deployment's budget period stands.
NextBackfillPassDueAtDateTimeOffset?When the replica that answered will next take a pass, or null while it has none scheduled. An instant already past is a pass that is running or about to be taken; the absence is a process that has only just started, or one whose walk is turned off and will schedule nothing at all. Every replica schedules its own passes and one lease decides which of them the pass belongs to, so this is when this process will next ask rather than when the deployment will next walk.
AttachmentDerivationAttachmentDerivationStatusHow far reading this deployment's attachments and images has come, and what its own two ceilings have consumed. A member of its own rather than figures folded into the ones above, because attachment work is counted in octets and in calls while embedding is counted in characters, and one mailbox may be entirely embedded on its message text with every document in it still unread.
Remarks
One value rather than five readings an operator has to combine, because the question it answers is one question. Semantic search can be absent for reasons that look nothing alike — no provider declared, a declaration nobody activated, a provider refusing the credential, a reindex still running, a budget period spent, a pass that is simply not due yet — and each of them is answered by a different member here. Reading them apart would leave an operator checking five things to learn that the sixth was the problem.
Two of its members answer for the replica that composed it rather than for the deployment, and Replica is what makes that readable: what the last provider call established is what this process last saw, and when the next backfill pass is due is when this process will next try for the walk's lease. Everything else is a durable figure every replica answers alike. An operator asking twice and getting two different instants is reading two replicas, and without the identity beside them there is nothing in the answer that says so.
Nothing here is mail. Model names, counts, timestamps, a health state, and a replica identity are what it holds, which is what makes it safe to serve from the administrative endpoint.