package org.aibidding.knowledge.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.aibidding.common.mybatis.core.domain.BaseEntity;
import org.aibidding.knowledge.domain.KnowledgeInfo;

/**
 * 知识库业务对象 knowledge_info
 *
 * @author Lion Li
 * @date 2024-10-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = KnowledgeInfo.class, reverseConvertGenerate = false)
public class KnowledgeInfoBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空")
    private Long id;

    /**
     * 知识库ID
     */
    @NotBlank(message = "知识库ID不能为空")
    private String kid;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空")
    private Long uid;

    /**
     * 知识库名称
     */
    @NotBlank(message = "知识库名称不能为空")
    private String kname;

    /**
     * 知识库名称
     */
    @NotBlank(message = "是否公开知识库")
    private String share;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空")
    private String description;

    /**
     * 知识分隔符
     */
    @NotBlank(message = "知识分隔符不能为空")
    private String knowledgeSeparator;

    /**
     * 提问分隔符
     */
    @NotBlank(message = "提问分隔符不能为空")
    private String questionSeparator;

    /**
     * 重叠字符数
     */
    @NotNull(message = "重叠字符数不能为空")
    private Integer overlapChar;

    /**
     * 知识库中检索的条数
     */
    @NotNull(message = "知识库中检索的条数不能为空")
    private Integer retrieveLimit;

    /**
     * 文本块大小
     */
    @NotNull(message = "文本块大小不能为空")
    private Integer textBlockSize;

    /**
     * 向量库
     */
    @NotBlank(message = "向量库不能为空")
    private String vector;

    /**
     * 向量模型
     */
    @NotBlank(message = "向量模型不能为空")
    private String vectorModel;
}
