maximumSequenceLength
The maximum number of tokens in sequence for which the embedding generates vectors.
Declaration
var maximumSequenceLength: Int { get }Discussion
Inputs longer than the token limit will be truncated, and only the first maximumSequenceLength tokens will be processed to generate embeddings.
NLContextualEmbedding works best with text snippets at the sentence or paragraph level. The model truncates text that exceeds this maximum length and only processes the truncated portion of the input.