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, andusagekeep old call-sites source-compatible. - Providers can set
modality/dim/usagewhen they know it; callers can ignore safely.
- Defaults on
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article