Table of Contents

Method Create

Namespace
MailFathom.Application.Emails.Embeddings
Assembly
MailFathom.Application.dll

Create(int, string?, bool)

Builds a preparation, refusing one that could not produce a passage to send.

public static EmbeddingInputPreparation Create(int inputCharacterLimit, string? passageInstruction, bool normalizesVector)

Parameters

inputCharacterLimit int

The width a passage is cut to before it is sent.

passageInstruction string

The instruction a model requires of a passage, or null.

normalizesVector bool

Whether the vector is normalized to unit length.

Returns

EmbeddingInputPreparation

The input preparation.

Exceptions

ArgumentOutOfRangeException

Thrown when the character limit is not positive.

ArgumentException

Thrown when the instruction is blank, or longer than MaximumPassageInstructionLength.