Class VertexAiEmbeddingUtils

java.lang.Object
org.springframework.ai.vertexai.embedding.VertexAiEmbeddingUtils

public abstract class VertexAiEmbeddingUtils extends Object
Utility class for constructing parameter objects for Vertex AI embedding requests.
Since:
1.0.0
Author:
Christian Tzolov
  • Constructor Details

    • VertexAiEmbeddingUtils

      public VertexAiEmbeddingUtils()
  • Method Details

    • valueOf

      public static com.google.protobuf.Value valueOf(boolean n)
    • valueOf

      public static com.google.protobuf.Value valueOf(String s)
    • 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)