Table of Contents

Interface IEmailTextChunker

Namespace
MailFathom.Application.Emails.Chunking
Assembly
MailFathom.Application.dll

Cuts one message's extracted text into the passages retrieval works on.

public interface IEmailTextChunker

Remarks

The operation is a pure derivation and the contract says so: it is synchronous and takes no cancellation token, because it reaches no provider, opens no connection, and reads nothing but the text it is handed. That is what lets re-cutting a mailbox be a local cost rather than a provider bill, and what lets every rule below be proven by a test with no substitute in it.

The port exists because chunking belongs to the AI boundary while persistence writes the chunks in the same session as the message they derive from, and persistence may not reference that boundary. It is also the seam a rule set that measures tokens rather than characters would arrive through.

Methods

DeriveChunks(ExtractedEmailText, EmailChunkingRules)

Cuts extracted text into chunks, in reading order.