Class OvhAiEmbeddingModel
java.lang.Object
dev.langchain4j.model.ovhai.OvhAiEmbeddingModel
- All Implemented Interfaces:
EmbeddingModel
@Deprecated(forRemoval=true,
since="1.14.0")
public class OvhAiEmbeddingModel
extends Object
implements EmbeddingModel
Deprecated, for removal: This API element is subject to removal in a future version.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Deprecated, for removal: This API element is subject to removal in a future version.embedAll(List<TextSegment> textSegments) Deprecated, for removal: This API element is subject to removal in a future version.Embeds the text content of a list ofTextSegments.static OvhAiEmbeddingModelwithApiKey(String apiKey) 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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EmbeddingModel
addListener, addListeners, defaultRequestParameters, dimension, doEmbed, embed, embed, embed, listeners, modelName, provider, supportedContentTypes, supportedParameters
-
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
Deprecated, for removal: This API element is subject to removal in a future version. -
embedAll
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:EmbeddingModelEmbeds the text content of a list ofTextSegments.This is a convenience method over
EmbeddingModel.embed(EmbeddingRequest), solistenersare notified and the model's default per-call parameters are applied here too. A provider implements its embedding logic by overridingEmbeddingModel.doEmbed(EmbeddingRequest)(preferred); it may still override this method for batch-specific behavior that the request/response API does not carry (for example applying a document title fromTextSegmentmetadata).- Specified by:
embedAllin interfaceEmbeddingModel- Parameters:
textSegments- the text segments to embed.- Returns:
- the embeddings.
-
OpenAiEmbeddingModelfromlangchain4j-open-aimodule instead