21 小时以前 c9172960bda01fca866969cc6ec4ca126eb97104
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package cn.iocoder.yudao.module.ai.controller.admin.knowledge.vo.segment;
 
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 AiKnowledgeSegmentSearchReqVO {
 
    @Schema(description = "知识库编号", example = "1")
    @NotNull(message = "知识库编号不能为空")
    private Long knowledgeId;
 
    @Schema(description = "检索内容")
    @NotEmpty(message = "检索内容不能为空")
    private String content;
 
    @Schema(description = "返回数量", example = "3")
    private Integer topK;
 
    @Schema(description = "相似度阈值", example = "0.7")
    private Double similarityThreshold;
 
}