输入会在 `max_seq_length` 处默默地被截断,调用者无法检测到这一点
作者: ErnisBadmae创建于 2026年9月21日更新于 2026年9月25日
`SentenceTransformer.encode()` truncates inputs that exceed `max_seq_length` and does not give the caller any signal that it happened. The result is a valid-looking embedding of a document whose tail never reached the encoder.
内容来源: huggingface/sentence-transformers