EmbeddingsApi

io.github.quafadas.dairect.EmbeddingsApi
See theEmbeddingsApi companion trait
object EmbeddingsApi

Attributes

Companion
trait
Experimental
true
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class Embedding(`object`: String, embedding: List[Double], index: Int)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class EmbeddingList(`object`: String, data: List[Embedding], model: String, usage: Usage)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Usage(prompt_tokens: Int, total_tokens: Int)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply(client: Client[IO], baseUrl: Uri): Resource[IO, EmbeddingsApi]

Value parameters

baseUrl

- The base url of the openAi service see EmbeddingsApi

client

- An http4s client - apply your middleware to it

Attributes

Givens

Givens