Class Embedding

java.lang.Object
org.springframework.ai.embedding.Embedding
All Implemented Interfaces:
ModelResult<List<Double>>

public class Embedding extends Object implements ModelResult<List<Double>>
Represents a single embedding vector.
  • Constructor Details

    • Embedding

      public Embedding(List<Double> embedding, Integer index)
      Creates a new Embedding instance.
      Parameters:
      embedding - the embedding vector values.
      index - the embedding index in a list of embeddings.
  • Method Details