Table of Contents

Class AgentConversationEmbedding

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

Places what was said in one turn of a conversation in the active vector space, once the turn has ended.

public sealed class AgentConversationEmbedding
Inheritance
AgentConversationEmbedding
Inherited Members

Remarks

What is embedded is what somebody said. The person's question, any instruction they added while it was being answered, and the agent's prose — its answer block — are placed. Every other block reaches the lexical index alone: it renders an object that lives elsewhere and is searched there by its own search, so embedding it would rank the conversation for the meaning of a calendar entry rather than for anything said in it.

It runs when the answer ends, in the run that composed it. A turn's messages are then all written, so they are placed in one call rather than one call per message, and nothing is added to the time a person waits for an answer to start. A stopped answer is placed as far as it got.

Nothing placed is nothing lost. A deployment with no active profile, a provider that cannot be reached, or a model that no longer matches the stored vectors leaves the turn unembedded, and a conversation with no vector is still found by its words. That is also why nothing is retried: a turn that missed its vectors ranks lexically, which is a difference in quality rather than a gap.

Constructors

AgentConversationEmbedding(IAgentConversationStore, ActiveEmbeddingSpace, IAgentConversationSearchIndex)

Initializes the embedding of conversation turns.

Methods

EmbedTurnAsync(AgentQuestion, CancellationToken)

Embeds the question a run answered and everything said in its answer.