Class Embedding
java.lang.Object
ai.redouble.demo.extract.Embedding
A vector and the key it embeds, plus the model that produced it: vectors are comparable
only with vectors from the same model, so the index records which one every vector came from.
- Since:
- 0.1 (2026-09-14)
- Author:
- Andrey Santrosyan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()float[]voidvoidsetModelId(String modelId) voidsetVector(float[] vector)
-
Constructor Details
-
Embedding
public Embedding()
-
-
Method Details
-
getKey
-
setKey
-
getVector
public float[] getVector() -
setVector
public void setVector(float[] vector) -
getModelId
-
setModelId
-