tech.amikos.chromadb.embeddings.ollama.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
The newest version!
package tech.amikos.chromadb.embeddings.ollama;
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("model")
public String model;
@SerializedName("embeddings")
public List> embeddings;
// create getters for all fields
public String getModel() {
return model;
}
public List> getEmbeddings() {
return embeddings;
}
@Override
public String toString() {
return new Gson().toJson(this);
}
}