embed
//ellmental/com.theagilemonkeys.ellmental.embeddingsmodel.openai/OpenAIEmbeddingsModel/embed
embed
open suspend override fun embed(text: String, params: Any?): Embedding
Embeds the given text into a vector space.
Return
An Embedding object containing the embedding vector.
Parameters
jvm
text | The text to embed. |
params | - ignored |
Throws
IllegalStateException | if the response is empty. |