Class EmbeddingResponse

java.lang.Object
dev.langchain4j.model.zhipu.embedding.EmbeddingResponse

public final class EmbeddingResponse extends Object
  • Constructor Details

    • EmbeddingResponse

      public EmbeddingResponse()
  • Method Details

    • getEmbedding

      public List<Float> getEmbedding()
      Convenience method to get the embedding from the first data.
    • getModel

      public String getModel()
    • setModel

      public void setModel(String model)
    • getObject

      public String getObject()
    • setObject

      public void setObject(String object)
    • getData

      public List<Embedding> getData()
    • setData

      public void setData(List<Embedding> data)
    • getUsage

      public Usage getUsage()
    • setUsage

      public void setUsage(Usage usage)