Table of Contents

Method PlaceAsync

Namespace
MailFathom.Application.Emails.Search
Assembly
MailFathom.Application.dll

PlaceAsync(IReadOnlyList<string>, CancellationToken)

Places each text in the active space, all of them or none.

public Task<EmbeddingPlacement> PlaceAsync(IReadOnlyList<string> texts, CancellationToken cancellationToken)

Parameters

texts IReadOnlyList<string>

The texts to place, none of them blank.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<EmbeddingPlacement>

What semantic retrieval could do, and one vector per text in order when it could produce them.

Remarks

The texts are sent in as many calls as the generator's own bound requires. A call that fails leaves the whole placement empty rather than partly filled, because a caller holding vectors for some of what it asked about would have to reconcile them one by one, and every caller here treats a missing vector as the lexical answer anyway.

Exceptions

ArgumentNullException

Thrown when texts is null.

ArgumentOutOfRangeException

Thrown when texts is empty.

OperationCanceledException

Thrown when the caller cancels or the host is shutting down, which is neither a provider failure nor an absence of semantic retrieval.