Skip to main content

Embedding

//ellmental/com.theagilemonkeys.ellmental.core.schema/Embedding

Embedding

@Serializable

@JvmInline

value class Embedding(val value: List<Double>)

Vector Embeddings

An Embedding is a list of doubles that represents a vector in a multidimensional space. It is useful to represent the semantic meaning of a word or a sentence.

This class is inlined to avoid the overhead of creating a new object for each embedding.

Parameters

jvm

valuethe list of doubles that represents the vector

See also

Word Embedding

Constructors

Embedding[jvm]
constructor(value: List<Double>)

Properties

NameSummary
value[jvm]
val value: List<Double>