| | |
| | | package cn.iocoder.yudao.module.ai.controller.admin.knowledge.vo.knowledge; |
| | | |
| | | import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; |
| | | import cn.iocoder.yudao.framework.common.validation.InEnum; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import jakarta.validation.constraints.NotEmpty; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import lombok.Data; |
| | | |
| | |
| | | @Data |
| | | public class AiKnowledgeSaveReqVO { |
| | | |
| | | @Schema(description = "对话编号", example = "1204") |
| | | @Schema(description = "编号", example = "1") |
| | | private Long id; |
| | | |
| | | @Schema(description = "知识库名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "ruoyi-vue-pro 用户指南") |
| | | @NotBlank(message = "知识库名称不能为空") |
| | | @Schema(description = "知识库名称", example = "产品文档") |
| | | @NotEmpty(message = "知识库名称不能为空") |
| | | private String name; |
| | | |
| | | @Schema(description = "知识库描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "存储 ruoyi-vue-pro 操作文档") |
| | | @Schema(description = "知识库描述", example = "产品相关文档") |
| | | private String description; |
| | | |
| | | @Schema(description = "向量模型编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| | | @Schema(description = "向量模型编号", example = "1") |
| | | @NotNull(message = "向量模型不能为空") |
| | | private Long embeddingModelId; |
| | | |
| | | @Schema(description = "topK", requiredMode = Schema.RequiredMode.REQUIRED, example = "3") |
| | | @NotNull(message = "topK 不能为空") |
| | | @Schema(description = "TopK", example = "3") |
| | | private Integer topK; |
| | | |
| | | @Schema(description = "相似性阈值", requiredMode = Schema.RequiredMode.REQUIRED, example = "0.5") |
| | | @NotNull(message = "相似性阈值不能为空") |
| | | @Schema(description = "相似度阈值", example = "0.7") |
| | | private Double similarityThreshold; |
| | | |
| | | @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| | | @NotNull(message = "是否启用不能为空") |
| | | @InEnum(CommonStatusEnum.class) |
| | | @Schema(description = "状态", example = "0") |
| | | private Integer status; |
| | | |
| | | } |