Package dev.langchain4j.model.embedding
Class AbstractInProcessEmbeddingModel
java.lang.Object
dev.langchain4j.model.embedding.AbstractInProcessEmbeddingModel
- All Implemented Interfaces:
dev.langchain4j.model.embedding.EmbeddingModel,dev.langchain4j.model.embedding.TokenCountEstimator
- Direct Known Subclasses:
CustomInProcessEmbeddingModel
public abstract class AbstractInProcessEmbeddingModel
extends Object
implements dev.langchain4j.model.embedding.EmbeddingModel, dev.langchain4j.model.embedding.TokenCountEstimator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<dev.langchain4j.data.embedding.Embedding>intestimateTokenCount(String text) protected abstract OnnxBertEmbeddingModelmodel()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.langchain4j.model.embedding.EmbeddingModel
embed, embedMethods inherited from interface dev.langchain4j.model.embedding.TokenCountEstimator
estimateTokenCount, estimateTokenCount
-
Constructor Details
-
AbstractInProcessEmbeddingModel
public AbstractInProcessEmbeddingModel()
-
-
Method Details
-
model
-
embedAll
public List<dev.langchain4j.data.embedding.Embedding> embedAll(List<dev.langchain4j.data.segment.TextSegment> segments) - Specified by:
embedAllin interfacedev.langchain4j.model.embedding.EmbeddingModel
-
estimateTokenCount
- Specified by:
estimateTokenCountin interfacedev.langchain4j.model.embedding.TokenCountEstimator
-