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

xyz.felh.openai.embedding.Embedding Maven / Gradle / Ivy

There is a newer version: 4.0.2024102501
Show newest version
package xyz.felh.openai.embedding;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import xyz.felh.openai.IOpenAiApiObject;
import lombok.Data;

import java.util.List;

/**
 * See document
 */
@Data
public class Embedding implements IOpenAiApiObject {

    public static String OBJECT = "embedding";

    /**
     * The object type, which is always "embedding".
     */
    @JSONField(name = "object")
    @JsonProperty("object")
    private String object;

    /**
     * The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the embedding guide.
     */
    @JSONField(name = "embedding")
    @JsonProperty("embedding")
    private List embedding;

    /**
     * The index of the embedding in the list of embeddings.
     */
    @JSONField(name = "index")
    @JsonProperty("index")
    private Integer index;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy