package org.dromara.knowledge.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.io.Serial;
import java.io.Serializable;

/**
 * 知识片段向量对象 knowledge_vector
 *
 * @author pengles
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("knowledge_vector")
public class KnowledgeVector extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 知识库ID
     */
    private String knowledgeId;

    /**
     * 文档ID
     */
    private String docId;

    /**
     * 知识片段ID
     */
    private String fragmentId;

    /**
     * 向量ID
     */
    private String vectorId;

    /**
     * 向量数据
     */
    private String vectorData;

    /**
     * 向量维度
     */
    private Integer dimension;

    /**
     * 模型名称
     */
    private String modelName;

    /**
     * 状态（0正常 1停用）
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;

}