Package org.springframework.ai.watsonx
Class WatsonxAiEmbeddingOptions
java.lang.Object
org.springframework.ai.watsonx.WatsonxAiEmbeddingOptions
- All Implemented Interfaces:
EmbeddingOptions
,ModelOptions
The configuration information for the embedding requests.
- Since:
- 1.0.0
- Author:
- Pablo Sanchidrian Herrera
-
Field Summary
Fields inherited from interface org.springframework.ai.embedding.EmbeddingOptions
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic WatsonxAiEmbeddingOptions
create()
Helper factory method to create a newWatsonxAiEmbeddingOptions
instance.static WatsonxAiEmbeddingOptions
fromOptions
(WatsonxAiEmbeddingOptions fromOptions) getModel()
void
-
Field Details
-
DEFAULT_MODEL
- See Also:
-
-
Constructor Details
-
WatsonxAiEmbeddingOptions
public WatsonxAiEmbeddingOptions()
-
-
Method Details
-
create
Helper factory method to create a newWatsonxAiEmbeddingOptions
instance.- Returns:
- A new
WatsonxAiEmbeddingOptions
instance.
-
fromOptions
-
withModel
-
getModel
- Specified by:
getModel
in interfaceEmbeddingOptions
-
setModel
-
getDimensions
- Specified by:
getDimensions
in interfaceEmbeddingOptions
-