Table of Contents

Method AddDeterministicTextEmbeddings

Namespace
MailFathom.AI
Assembly
MailFathom.AI.dll

AddDeterministicTextEmbeddings(IServiceCollection, int, int)

Registers the generator that derives vectors from the text alone, reaching no provider.

public static IServiceCollection AddDeterministicTextEmbeddings(this IServiceCollection services, int dimension, int inputCharacterLimit)

Parameters

services IServiceCollection

The service collection to add to.

dimension int

The width of the space it produces vectors in.

inputCharacterLimit int

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

Returns

IServiceCollection

The same service collection, so registration reads as one expression.

Remarks

Everything downstream of the port — the schema, the worker, the backfill, the generation switch — is provable against this and a real database at zero provider cost, which is what makes it part of the shipped code rather than a test double. A deployment that registers it is embedding with a hash and its profile row says so.

Exceptions

ArgumentNullException

Thrown when services is null.

ArgumentOutOfRangeException

Thrown when a bound is not positive.