Class HuggingFaceEmbeddingModel
java.lang.Object
dev.langchain4j.model.huggingface.HuggingFaceEmbeddingModel
- All Implemented Interfaces:
EmbeddingModel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionHuggingFaceEmbeddingModel(String accessToken, String modelId, Boolean waitForModel, Duration timeout) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()embedAll(List<TextSegment> textSegments) static HuggingFaceEmbeddingModelwithAccessToken(String accessToken) 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, embed
-
Constructor Details
-
HuggingFaceEmbeddingModel
-
-
Method Details
-
embedAll
- Specified by:
embedAllin interfaceEmbeddingModel
-
withAccessToken
-
builder
-