Class DbValue

java.lang.Object
com.google.genkit.plugins.localvec.DbValue

public class DbValue extends Object
Represents a stored document value with its embedding.
  • Constructor Details

    • DbValue

      public DbValue()
      Default constructor for Jackson.
    • DbValue

      public DbValue(Document doc, List<Float> embedding)
      Creates a new DbValue.
      Parameters:
      doc - the document
      embedding - the embedding vector
  • Method Details

    • getDoc

      public Document getDoc()
      Gets the document.
      Returns:
      the document
    • setDoc

      public void setDoc(Document doc)
      Sets the document.
      Parameters:
      doc - the document
    • getEmbedding

      public List<Float> getEmbedding()
      Gets the embedding.
      Returns:
      the embedding vector
    • setEmbedding

      public void setEmbedding(List<Float> embedding)
      Sets the embedding.
      Parameters:
      embedding - the embedding vector