public class HuggingFaceEmbeddingModel extends Object implements EmbeddingModel
| Constructor and Description |
|---|
HuggingFaceEmbeddingModel(String accessToken,
String modelId,
Boolean waitForModel,
Duration timeout) |
| Modifier and Type | Method and Description |
|---|---|
Response<List<Embedding>> |
embedAll(List<TextSegment> textSegments) |
static HuggingFaceEmbeddingModel |
withAccessToken(String accessToken) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitembed, embedpublic Response<List<Embedding>> embedAll(List<TextSegment> textSegments)
embedAll in interface EmbeddingModelpublic static HuggingFaceEmbeddingModel withAccessToken(String accessToken)
Copyright © 2023. All rights reserved.