View Source Vettore.Embedding (Vettore v0.3.1)

Represents a single embedding entry for insertion into a collection.

fields

Fields

  • :id - Stable identifier for this embedding. Preferred in vNext.
  • :value - A string or content identifier for this embedding can be Id, or Text (e.g. "this is text data").
  • :vector - A list of floating‑point numbers representing the embedding (e.g. [1.0, 2.0, 3.0]).
  • :vectors - Optional token/document vectors for late interaction search.
  • :binary_vector - Packed sign-bit vector used for binary quantized candidate search.
  • :metadata - (Optional) A map with any additional information you want to store (e.g. %{"info" => "my note"}).

Link to this section Summary

Link to this section Types

@type t() :: %Vettore.Embedding{
  binary_vector: [non_neg_integer()] | nil,
  id: String.t() | nil,
  metadata: map() | nil,
  value: String.t() | nil,
  vector: [float()] | nil,
  vectors: [[float()]] | nil
}