Table of Contents

Method Create

Namespace
MailFathom.AI.Embeddings
Assembly
MailFathom.AI.dll

Create(IReadOnlyList<EmbeddingEndpoint>, bool, int, TimeSpan)

Builds a plan, refusing a chain that could not serve one vector space.

public static EmbeddingGenerationPlan Create(IReadOnlyList<EmbeddingEndpoint> endpoints, bool allowTrimVectors, int maximumPassagesPerCall, TimeSpan requestTimeout)

Parameters

endpoints IReadOnlyList<EmbeddingEndpoint>

The endpoints in fallback order.

allowTrimVectors bool

Whether a wider vector may be cut down to the declared dimension.

maximumPassagesPerCall int

The greatest number of passages one call sends.

requestTimeout TimeSpan

The time one request may take.

Returns

EmbeddingGenerationPlan

The plan.

Exceptions

ArgumentNullException

Thrown when endpoints is null.

ArgumentException

Thrown when the chain is empty or its endpoints do not all declare one geometry.

ArgumentOutOfRangeException

Thrown when a bound is not positive.