Table of Contents

Class PlannedMailRetrieval

Namespace
MailFathom.Application.Discovery.Runs
Assembly
MailFathom.Application.dll

Runs a retrieval plan's lookups against the mail the question's scope admits, and stops when it has enough.

public sealed class PlannedMailRetrieval
Inheritance
PlannedMailRetrieval
Inherited Members

Remarks

It implements no retrieval of its own. Every lookup goes through IEmailKnowledgeSearch, which is the deployment's own lexical, semantic, or hybrid path, so whatever those paths have been taught to reach — an attachment's own text, a description of a picture — is what a plan reaches, ranked as they rank it. Nothing here re-derives or re-ranks around what they returned.

The scope is the question's and it bounds the reading rather than the result: it travels into each lookup and is applied by the query itself, so a question about four selected messages reads four messages instead of reading the mailbox and discarding the rest.

What a plan may draw out in total is the run's, not a lookup's. Each lookup's passages pass the run's own ledger, which admits what still fits inside the characters one question may retrieve — the privacy ceiling, being the total amount of somebody's mail that may leave the process to answer one question — and says so when a lookup found more than that. Reaching it stops the plan rather than cutting the answer, and the run states it as a limitation instead of quietly answering from less.

Constructors

PlannedMailRetrieval(IEmailKnowledgeSearch, MailAnsweringRunLedger)

Creates the retrieval a plan is run through.

Methods

RetrieveAsync(MailQuestion, RetrievalPlan, Func<DiscoveryRetrievalProgress, Task>?, CancellationToken)

Runs the plan's lookups in order, giving each its share of the passages the plan allows.