Class EmbeddingGenerationPlan
- Namespace
- MailFathom.AI.Embeddings
- Assembly
- MailFathom.AI.dll
The validated declaration a provider adapter runs on: one vector space, the endpoints that serve it, and what one call may spend.
public sealed class EmbeddingGenerationPlan
- Inheritance
-
EmbeddingGenerationPlan
- Inherited Members
Remarks
Built once, at startup, from configuration that has already been proved consistent — every endpoint agreeing on the geometry, and the geometry itself being one the database can carry. An adapter therefore never revalidates and never has to decide what to do about a chain that disagrees with itself.
Deliberately holds no credential and no secret reference. What proves the deployment's identity to an endpoint is resolved per request through IEmbeddingCredentialSource, so a rotated key needs no restart and this value is safe to hold for the lifetime of the process.
Properties
- AllowTrimVectors
Gets whether a vector wider than the declared dimension may be cut down to it.
- Endpoints
Gets the endpoints in the order they are tried, all of them serving one vector space.
- Identity
Gets the geometry every vector this plan produces belongs to.
- MaximumPassagesPerCall
Gets the greatest number of passages one call sends.
- RequestTimeout
Gets the time one request to one endpoint may take before it is abandoned.
Methods
- Create(IReadOnlyList<EmbeddingEndpoint>, bool, int, TimeSpan)
Builds a plan, refusing a chain that could not serve one vector space.