Class DbValue
java.lang.Object
com.google.genkit.plugins.localvec.DbValue
Represents a stored document value with its embedding.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDoc()Gets the document.Gets the embedding.voidSets the document.voidsetEmbedding(List<Float> embedding) Sets the embedding.
-
Constructor Details
-
DbValue
public DbValue()Default constructor for Jackson. -
DbValue
Creates a new DbValue.- Parameters:
doc- the documentembedding- the embedding vector
-
-
Method Details
-
getDoc
Gets the document.- Returns:
- the document
-
setDoc
Sets the document.- Parameters:
doc- the document
-
getEmbedding
Gets the embedding.- Returns:
- the embedding vector
-
setEmbedding
Sets the embedding.- Parameters:
embedding- the embedding vector
-