Class EmbeddingInputBound
- Namespace
- MailFathom.Application.Emails.Embeddings.Limits
- Assembly
- MailFathom.Application.dll
How much of one message's extracted text is cut into passages, and therefore what one message may cost.
public sealed class EmbeddingInputBound
- Inheritance
-
EmbeddingInputBound
- Inherited Members
Remarks
Per-item cost is not uniform: raw MIME is bounded at tens of megabytes, so a single message can carry more text than an ordinary mailbox does in a month, and every character of it would otherwise become a passage and a paid vector. This is the ceiling that makes one message's cost bounded rather than proportional to whatever a sender attached.
It bounds rather than refuses. A message beyond the ceiling is still cut, still embedded, and still retrievable on its opening — which is the part the rest of a message elaborates — and the length its text had is recorded on the message so that what was left out is a stored fact rather than something inferred later from a chunk count.
It is not the input preparation an embedding profile records, although both are limits on text. ADR 0006 draws the line: preparation decides what one passage means and belongs to the profile's identity, while this decides how many passages exist and changes the meaning of none of them. Raising it therefore cuts new passages for the messages it reaches and leaves every stored vector exactly as comparable as it was.
Fields
- DefaultMaximumCharacterCount
The characters of one message that are cut into passages where a deployment declares nothing.
Properties
- Default
Gets the bound a deployment that declared none is cut to.
- MaximumCharacterCount
Gets the characters of one message's text that are cut into passages.
Methods
- Create(int)
Builds a bound from what a deployment declared.