Table of Contents

Enum LiteRtInputOverflowStrategy

Namespace
LiteRtLmSharp
Assembly
LiteRtLmSharp.dll

How the embedding engine handles a text longer than its largest loaded input signature (see MaxInputLength).

public enum LiteRtInputOverflowStrategy

Fields

ChunkAndAverage = 0

Split the text into chunks that fit, embed each and average the vectors.

Error = 2

Fail the call with InvalidArgument. The runtime default.

Truncate = 1

Embed only the first part of the text that fits.