EmbeddingResponse

org.llm4s.llmconnect.model.EmbeddingResponse
See theEmbeddingResponse companion object
final case class EmbeddingResponse(embeddings: Seq[Seq[Double]], metadata: Map[String, String], modality: Option[Modality], dim: Option[Int], usage: Option[EmbeddingUsage])

Successful response carrying embedding vectors and lightweight metadata.

Value parameters

dim

Optional dimensionality, if convenient to surface at response-level.

embeddings

One vector per input text/chunk (or per item).

metadata

Provider/model info etc. (e.g., "provider" -> "openai", "model" -> "...").

modality

Optional overall modality tag (Text, Audio, Video) when known.

usage

Optional token usage statistics (available from providers like OpenAI). Notes:

  • Defaults on metadata, modality, dim, and usage keep old call-sites source-compatible.
  • Providers can set modality/dim/usage when they know it; callers can ignore safely.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product