Class VertexAiEmbeddingUtils
java.lang.Object
org.springframework.ai.vertexai.embedding.VertexAiEmbeddingUtils
Utility class for constructing parameter objects for Vertex AI embedding requests.
- Since:
- 1.0.0
- Author:
- Christian Tzolov
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.protobuf.Value
jsonToValue
(String json) static float[]
toVector
(com.google.protobuf.Value value) static com.google.protobuf.Value
valueOf
(boolean n) static com.google.protobuf.Value
valueOf
(int n) static com.google.protobuf.Value
valueOf
(com.google.protobuf.Struct struct) static com.google.protobuf.Value
-
Constructor Details
-
VertexAiEmbeddingUtils
public VertexAiEmbeddingUtils()
-
-
Method Details
-
valueOf
public static com.google.protobuf.Value valueOf(boolean n) -
valueOf
-
valueOf
public static com.google.protobuf.Value valueOf(int n) -
valueOf
public static com.google.protobuf.Value valueOf(com.google.protobuf.Struct struct) -
jsonToValue
public static com.google.protobuf.Value jsonToValue(String json) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
toVector
public static float[] toVector(com.google.protobuf.Value value)
-