EmbeddingResponse

org.llm4s.llmconnect.model.EmbeddingResponse
See theEmbeddingResponse companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(embeddings: Seq[Seq[Double]], metadata: Map[String, String], modality: Option[Modality], dim: Option[Int], usage: Option[EmbeddingUsage]): EmbeddingResponse

Creates an EmbeddingResponse.

Creates an EmbeddingResponse.

Value parameters

dim

vector dimensionality, when known

embeddings

one vector per input

metadata

provider and model metadata

modality

overall modality, when known

usage

token usage, when the provider reports it

Attributes

Concrete fields

Convenience factory for an empty response.

Convenience factory for an empty response.

Attributes