package cn.iocoder.yudao.module.ai.controller.admin.knowledge.vo.knowledge;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.NotEmpty;
|
import jakarta.validation.constraints.NotNull;
|
import lombok.Data;
|
|
@Schema(description = "管理后台 - AI 知识库新增/修改 Request VO")
|
@Data
|
public class AiKnowledgeSaveReqVO {
|
|
@Schema(description = "编号", example = "1")
|
private Long id;
|
|
@Schema(description = "知识库名称", example = "产品文档")
|
@NotEmpty(message = "知识库名称不能为空")
|
private String name;
|
|
@Schema(description = "知识库描述", example = "产品相关文档")
|
private String description;
|
|
@Schema(description = "向量模型编号", example = "1")
|
@NotNull(message = "向量模型不能为空")
|
private Long embeddingModelId;
|
|
@Schema(description = "TopK", example = "3")
|
private Integer topK;
|
|
@Schema(description = "相似度阈值", example = "0.7")
|
private Double similarityThreshold;
|
|
@Schema(description = "状态", example = "0")
|
private Integer status;
|
|
}
|