ExBifrost.Api.Embeddings (ex_bifrost v0.1.0)

Copy Markdown View Source

API calls for all endpoints tagged Embeddings.

Summary

Functions

Create embeddings Creates an embedding vector representing the input text.

Functions

create_embedding(connection, embedding_request, opts \\ [])

Create embeddings Creates an embedding vector representing the input text.

Parameters

  • connection (ExBifrost.Connection): Connection to server
  • embedding_request (EmbeddingRequest):
  • opts (keyword): Optional parameters

Returns

  • {:ok, ExBifrost.Model.EmbeddingResponse.t} on success
  • {:error, Tesla.Env.t} on failure