Class AbstractInProcessEmbeddingModel
java.lang.Object
dev.langchain4j.model.embedding.DimensionAwareEmbeddingModel
dev.langchain4j.model.embedding.onnx.AbstractInProcessEmbeddingModel
- All Implemented Interfaces:
EmbeddingModel
- Direct Known Subclasses:
AllMiniLmL6V2EmbeddingModel, AllMiniLmL6V2QuantizedEmbeddingModel, BgeSmallEnEmbeddingModel, BgeSmallEnQuantizedEmbeddingModel, BgeSmallEnV15EmbeddingModel, BgeSmallEnV15QuantizedEmbeddingModel, BgeSmallZhV15EmbeddingModel, BgeSmallZhV15QuantizedEmbeddingModel, E5SmallV2EmbeddingModel, E5SmallV2QuantizedEmbeddingModel, OnnxEmbeddingModel
-
Field Summary
Fields inherited from class DimensionAwareEmbeddingModel
dimension -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionembedAll(List<TextSegment> segments) Embeds the text content of a list of TextSegments.protected static OnnxBertBiEncoderloadFromJar(String modelFileName, String tokenizerFileName, PoolingMode poolingMode) protected abstract OnnxBertBiEncodermodel()Methods inherited from class DimensionAwareEmbeddingModel
dimension, knownDimensionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EmbeddingModel
embed, embed, modelName
-
Constructor Details
-
AbstractInProcessEmbeddingModel
-
-
Method Details
-
loadFromJar
protected static OnnxBertBiEncoder loadFromJar(String modelFileName, String tokenizerFileName, PoolingMode poolingMode) -
model
-
embedAll
Description copied from interface:EmbeddingModelEmbeds the text content of a list of TextSegments.- Parameters:
segments- the text segments to embed.- Returns:
- the embeddings.
-