embed
Embeds the given text using the configured Spring AI EmbeddingModel.
The LLModel.id is forwarded to the underlying model via EmbeddingOptions so that backends supporting runtime model selection can honour it.
Return
A list of floating-point values representing the embedding vector.
Parameters
The text to embed.
The model to use for embedding; its LLModel.id is passed as an embedding option.
Throws
if the underlying Spring AI call fails.
Embeds the given inputs using the configured Spring AI EmbeddingModel.
The LLModel.id is forwarded to the underlying model via EmbeddingOptions so that backends supporting runtime model selection can honour it.
Return
A list of embedding vectors, one per input string.
Parameters
The list of texts to embed.
The model to use for embedding; its LLModel.id is passed as an embedding option.
Throws
if the underlying Spring AI call fails.