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

tech.amikos.cohere.CreateEmbeddingResponse Maven / Gradle / Ivy

package tech.amikos.cohere;

import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.google.gson.internal.LinkedTreeMap;

import java.util.List;

public class CreateEmbeddingResponse {

    @SerializedName("id")
    public String id;

    @SerializedName("texts")
    public String[] texts;

    @SerializedName("embeddings")
    public List> embeddings;

    @SerializedName("meta")
    public LinkedTreeMap meta;

    // create getters for all fields

    public String getId() {
        return id;
    }

    public String[] getTexts() {
        return texts;
    }

    public List> getEmbeddings() {
        return embeddings;
    }

    public LinkedTreeMap getMeta() {
        return meta;
    }


    @Override
    public String toString() {
        return new Gson().toJson(this);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy