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 = 0Split the text into chunks that fit, embed each and average the vectors.
Error = 2Fail the call with InvalidArgument. The runtime default.
Truncate = 1Embed only the first part of the text that fits.