| | |
| | | package cn.iocoder.yudao.module.ai.controller.admin.knowledge.vo.segment; |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import jakarta.validation.constraints.NotEmpty; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import lombok.Data; |
| | | |
| | | @Schema(description = "管理后台 - AI 知识库段落搜索 Request VO") |
| | | @Schema(description = "管理后台 - AI 知识库分段检索 Request VO") |
| | | @Data |
| | | public class AiKnowledgeSegmentSearchReqVO { |
| | | |
| | | @Schema(description = "知识库编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| | | @Schema(description = "知识库编号", example = "1") |
| | | @NotNull(message = "知识库编号不能为空") |
| | | private Long knowledgeId; |
| | | |
| | | @Schema(description = "内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "如何使用这个产品") |
| | | @NotEmpty(message = "内容不能为空") |
| | | @Schema(description = "检索内容") |
| | | @NotEmpty(message = "检索内容不能为空") |
| | | private String content; |
| | | |
| | | @Schema(description = "最大返回数量", example = "5") |
| | | @Schema(description = "返回数量", example = "3") |
| | | private Integer topK; |
| | | |
| | | @Schema(description = "相似度阈值", example = "0.7") |