Class EmbeddingsClient
java.lang.Object
io.github.stefanbratanov.jvm.openai.EmbeddingsClient
Get a vector representation of a given input that can be easily consumed by machine learning
models and algorithms.
Based on Embeddings
-
Method Summary
Modifier and TypeMethodDescriptioncreateEmbeddings
(EmbeddingsRequest request) Creates an embedding vector representing the input text.
-
Method Details
-
createEmbeddings
Creates an embedding vector representing the input text.- Throws:
OpenAIException
- in case of API errors
-