Class AgentConversationSearch
- Namespace
- MailFathom.Application.Agent.Search
- Assembly
- MailFathom.Application.dll
Searches a person's Agent history the way mail is searched: by words and by meaning, fused by rank.
public sealed class AgentConversationSearch
- Inheritance
-
AgentConversationSearch
- Inherited Members
Remarks
Nothing about the ranking is invented here. The query is placed through ActiveEmbeddingSpace, which mail search places its query through, and the two rankings are combined by ReciprocalRankFusion, which reads only where each ranking put a conversation and nothing of the numbers behind it. What is this search's own is what settles a tie between two fused scores: the conversation's own recency, as the timeline settles a tie in mail, so one query returns one sequence.
An embedding provider that cannot be reached costs ranking quality, never the answer. The search then returns the lexical ordering and says so, and a conversation whose messages were never embedded ranks lexically in a hybrid search too, since fusion scores whatever either ranking returned.
Constructors
- AgentConversationSearch(ActiveEmbeddingSpace, IAgentConversationSearchIndex)
Initializes the search over this deployment's index and its active vector space.
Fields
- MaximumResults
The greatest number of conversations one search returns.
Methods
- SearchAsync(UserId, EmailSearchQueryText, int, CancellationToken)
Searches one person's conversations.