Class Embedding
- java.lang.Object
-
- com.microsoft.semantickernel.services.textembedding.Embedding
-
public class Embedding extends Object
Represents a strongly typed vector of numeric data.
-
-
Constructor Summary
Constructors Constructor Description Embedding()Initializes a new instance of the Embedding class.Embedding(float[] vector)Initializes a new instance of the Embedding class that contains numeric elements copied from the specified arrayEmbedding(List<Float> vector)Initializes a new instance of the Embedding class that contains numeric elements copied from the specified collection
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Embeddingempty()Returns an emptyEmbeddinginstance.List<Float>getVector()Return the embedding vector as a read-only list.
-
-
-
Constructor Detail
-
Embedding
public Embedding()
Initializes a new instance of the Embedding class.
-
Embedding
public Embedding(@Nonnull List<Float> vector)
Initializes a new instance of the Embedding class that contains numeric elements copied from the specified collection- Parameters:
vector- The collection whose elements are copied to the new Embedding
-
Embedding
public Embedding(@Nonnull float[] vector)
Initializes a new instance of the Embedding class that contains numeric elements copied from the specified array- Parameters:
vector- The array whose elements are copied to the new Embedding
-
-