Class OvhAiEmbeddingModel
java.lang.Object
dev.langchain4j.model.ovhai.OvhAiEmbeddingModel
- All Implemented Interfaces:
EmbeddingModel
Represents an OVHcloud embedding model. See models documentation here:
https://endpoints.ai.cloud.ovh.net/
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()embedAll(List<TextSegment> textSegments) Embeds the text content of a list of TextSegments.static OvhAiEmbeddingModelwithApiKey(String apiKey) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EmbeddingModel
dimension, embed, embed
-
Method Details
-
withApiKey
Deprecated, for removal: This API element is subject to removal in a future version.Please usebuilder()instead, and explicitly set the baseUrl and, if necessary, other parameters. The default value for baseUrl will be removed in future releases! -
builder
-
embedAll
Description copied from interface:EmbeddingModelEmbeds the text content of a list of TextSegments.- Specified by:
embedAllin interfaceEmbeddingModel- Parameters:
textSegments- the text segments to embed.- Returns:
- the embeddings.
-
builder()instead, and explicitly set the baseUrl and, if necessary, other parameters.