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

tech.amikos.chromadb.embeddings.hf.CreateEmbeddingRequest Maven / Gradle / Ivy

package tech.amikos.chromadb.embeddings.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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy