commonMain.com.aallam.openai.client.Embeddings.kt Maven / Gradle / Ivy
package com.aallam.openai.client
import com.aallam.openai.api.core.RequestOptions
import com.aallam.openai.api.embedding.EmbeddingRequest
import com.aallam.openai.api.embedding.EmbeddingResponse
/**
* Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.
*/
public interface Embeddings {
/**
* Creates an embedding vector representing the input text.
*
* @param request embedding request.
* @param requestOptions request options.
*/
public suspend fun embeddings(request: EmbeddingRequest, requestOptions: RequestOptions? = null): EmbeddingResponse
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy