Table of Contents

Interface IAgentConversationSearchIndex

Namespace
MailFathom.Application.Agent.Search
Assembly
MailFathom.Application.dll

The two rankings a person's Agent history is searched by, and the vectors the second one reads.

public interface IAgentConversationSearchIndex

Remarks

What each ranking reads. The lexical one reads every message's own text and every block's fields; the semantic one reads only what was embedded, which is a person's own words and the agent's prose. A block renders an object that lives elsewhere and is searched there, so ranking a conversation by the meaning of a calendar entry it happened to show would place it for something nobody said in it.

Both are scoped to one person and exact. The corpus is that person's own conversations, bounded by the conversation cap rather than by a mailbox, so every distance is measured and no approximate index stands between the query and the answer.

What is read and written here is somebody's own words, so nothing reaches a log, a span, a metric, or a failure message — the query included.

Methods

ReadLexicalRankingAsync(UserId, EmailSearchQueryText, int, CancellationToken)

Ranks one person's conversations by how well their words match the query.

ReadNearestRankingAsync(UserId, RegisteredEmbeddingProfile, EmbeddingVector, int, CancellationToken)

Ranks one person's conversations by how near their embedded messages sit to the query.

SaveEmbeddingAsync(AgentConversationId, UserId, long, RegisteredEmbeddingProfile, EmbeddingVector, CancellationToken)

Records where one written message sits in a space.