public class AllMiniLmL6V2EmbeddingModel extends AbstractInProcessEmbeddingModel
Maximum length of text (in tokens) that can be embedded at once: unlimited. However, while you can embed very long texts, the quality of the embedding degrades as the text lengthens. It is recommended to embed segments of no more than 256 tokens.
Embedding dimensions: 384
| Constructor and Description |
|---|
AllMiniLmL6V2EmbeddingModel() |
| Modifier and Type | Method and Description |
|---|---|
protected OnnxBertBiEncoder |
model() |
embedAll, estimateTokenCountclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitembed, embedestimateTokenCount, estimateTokenCountprotected OnnxBertBiEncoder model()
model in class AbstractInProcessEmbeddingModelCopyright © 2024. All rights reserved.