tech.amikos.chromadb.embeddings.cohere.CreateEmbeddingResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chromadb-java-client Show documentation
Show all versions of chromadb-java-client Show documentation
Chroma Vector DB Java Client
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);
}
}