tech.amikos.hf.CreateEmbeddingRequest 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.hf;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import java.util.HashMap;
public class CreateEmbeddingRequest {
@SerializedName("inputs")
private String[] inputs;
@SerializedName("options")
private HashMap options;
public CreateEmbeddingRequest inputs(String[] inputs) {
this.inputs = inputs;
return this;
}
public CreateEmbeddingRequest options(HashMap options) {
this.options = options;
return this;
}
public String[] getInputs() {
return inputs;
}
public HashMap getOptions() {
return options;
}
public String toString() {
return this.json();
}
public String json() {
return new Gson().toJson(this);
}
}