public class BgeSmallEnQuantizedEmbeddingModel 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 add "Represent this sentence for searching relevant passages:" prefix to a query.
More details here
| Constructor and Description |
|---|
BgeSmallEnQuantizedEmbeddingModel() |
| 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.