EmbeddingVector

org.llm4s.llmconnect.model.EmbeddingVector
final case class EmbeddingVector(id: String, modality: Modality, model: String, dim: Int, values: Array[Float], meta: Map[String, String])

Represents a dense embedding vector produced by an embedding model.

Value parameters

dim

dimensionality of the embedding vector

id

unique identifier for this embedding (e.g. document or chunk ID)

meta

optional key-value metadata associated with this embedding

modality

the input modality that was embedded (e.g. text, image)

model

name of the embedding model that produced this vector

values

raw float values of the embedding vector

Attributes

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