| | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | @Schema(description = "管理后台 - AI 知识库段落搜索 Response VO") |
| | | @Schema(description = "管理后台 - AI 知识库分段检索 Response VO") |
| | | @Data |
| | | public class AiKnowledgeSegmentSearchRespVO extends AiKnowledgeSegmentRespVO { |
| | | public class AiKnowledgeSegmentSearchRespVO { |
| | | |
| | | @Schema(description = "文档名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "产品使用手册") |
| | | @Schema(description = "分段编号", example = "1") |
| | | private Long id; |
| | | |
| | | @Schema(description = "文档编号", example = "1") |
| | | private Long documentId; |
| | | |
| | | @Schema(description = "文档名称", example = "xxx.pdf") |
| | | private String documentName; |
| | | |
| | | @Schema(description = "相似度分数", requiredMode = Schema.RequiredMode.REQUIRED, example = "0.95") |
| | | @Schema(description = "知识库编号", example = "1") |
| | | private Long knowledgeId; |
| | | |
| | | @Schema(description = "分段内容") |
| | | private String content; |
| | | |
| | | @Schema(description = "内容长度") |
| | | private Integer contentLength; |
| | | |
| | | @Schema(description = "Token 数") |
| | | private Integer tokens; |
| | | |
| | | @Schema(description = "相似度分数", example = "0.85") |
| | | private Double score; |
| | | |
| | | } |