OpenAI.Embeddings (openai_client v0.5.3)

Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.

Related guide: Embeddings

https://platform.openai.com/docs/api-reference/embeddings

Link to this section Summary

Functions

Creates an embedding vector representing the input text.

Link to this section Types

Link to this type

create_params()

@type create_params() :: %{
  :model => String.t(),
  :input => String.t() | [String.t()],
  optional(:user) => String.t()
}

Link to this section Functions

Link to this function

create(client, params, opts \\ [])

Creates an embedding vector representing the input text.