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
endpointsIReadOnlyList<EmbeddingEndpoint>The endpoints in fallback order.
allowTrimVectorsboolWhether a wider vector may be cut down to the declared dimension.
maximumPassagesPerCallintThe greatest number of passages one call sends.
requestTimeoutTimeSpanThe time one request may take.
Returns
- EmbeddingGenerationPlan
The plan.
Exceptions
- ArgumentNullException
Thrown when
endpointsis 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.