All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ee.carlrobert.llm.client.openai.embeddings.Embedding Maven / Gradle / Ivy

There is a newer version: 0.8.28
Show newest version
package ee.carlrobert.llm.client.openai.embeddings;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class Embedding {

  private final double[] embedding;

  @JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
  public Embedding(@JsonProperty("error") double[] embedding) {
    this.embedding = embedding;
  }

  public double[] getEmbedding() {
    return embedding;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy