Class RetrievalPlan
- Namespace
- MailFathom.Application.Discovery.Planning
- Assembly
- MailFathom.Application.dll
How a question is looked for: the lookups to run, in order, and the point at which enough has been found.
public sealed record RetrievalPlan : IEquatable<RetrievalPlan>
- Inheritance
-
RetrievalPlan
- Implements
- Inherited Members
Remarks
The plan decides how retrieval is used and implements none of it. Each lookup is an ordinary EmailKnowledgeQuery, so the lexical, semantic, and hybrid paths this deployment already ranks with are what runs — including whatever those paths admit from an attachment, which a plan neither re-derives nor re-ranks around.
Several lookups rather than one, because a question worth asking rarely matches one wording. Ordered rather than unordered, because the order settles which lookup's passage goes first where two share a rank — but never which lookup deserves the whole of MessageAllowance, since each is given its share of it.
Fields
- MaximumLookups
The greatest number of lookups one plan may run.
- MessagesAssuredPerLookup
How many messages every lookup may hand over passages of, whatever number of passages the plan called enough, where what one retrieval returns holds that many for each lookup.
Properties
- Lookups
Gets the lookups to run, in the order they are worth running.
- MessageAllowance
Gets the number of distinct messages a run may hand over passages of to answer from.
- SufficientPassages
Gets the number of distinct passages the planning judged would answer the question.
Methods
- Create(EmailKnowledgeBounds, IReadOnlyList<EmailKnowledgeQuery>, int)
Composes the plan a run retrieves by.
- ToString()
Returns a string that represents the current object.