Struct async_openai::Embeddings
source · pub struct Embeddings;
Expand description
Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.
Related guide: Embeddings
Implementations§
source§impl Embeddings
impl Embeddings
sourcepub async fn create(
client: &Client,
request: CreateEmbeddingRequest
) -> Result<CreateEmbeddingResponse, OpenAIError>
pub async fn create(
client: &Client,
request: CreateEmbeddingRequest
) -> Result<CreateEmbeddingResponse, OpenAIError>
Creates an embedding vector representing the input text.