public class E5SmallV2QuantizedEmbeddingModel 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 512 tokens long.
Embedding dimensions: 384
It is recommended to use the "query:" prefix for queries and the "passage:" prefix for segments.
More details here
| Constructor and Description |
|---|
E5SmallV2QuantizedEmbeddingModel() |
| 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.