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

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

There is a newer version: 0.1.6
Show newest version
package tech.amikos.chromadb.embeddings.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