Miosa.Embeddings (Miosa v1.0.0)

Copy Markdown View Source

OpenAI-compatible embedding vectors.

Routes live under /api/v1/intelligence/embeddings and require an mki_* intelligence key.

Summary

Functions

Create one or more embedding vectors (POST /intelligence/embeddings).

Functions

create(client, input, model, opts \\ %{})

@spec create(Miosa.Client.t(), String.t() | list(), String.t(), map()) ::
  Miosa.Client.result(map())

Create one or more embedding vectors (POST /intelligence/embeddings).

input may be a string or list of strings.

Returns the full OpenAI-envelope response %{"object" => "list", "data" => [...]}.