3 changed files with 66 additions and 25 deletions
@ -1,32 +1,44 @@ |
|||
package com.project.interaction.domain.dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 算法服务 - 知识点提取请求 DTO |
|||
* 入参结构待算法服务确认后调整 |
|||
*/ |
|||
@Data |
|||
public class AiExtractRequestDTO { |
|||
|
|||
/** 虚拟资料ID */ |
|||
@JsonProperty("information_id") |
|||
private Long informationId; |
|||
|
|||
/** 文件内容分类(产品类/知识类/规范类/流程类) */ |
|||
private String contentCategory; |
|||
/** 子文件解析后的分段列表(直接取 parsed_text 的 segments) */ |
|||
private List<Segment> segments; |
|||
|
|||
/** 子文件解析文本列表 */ |
|||
private List<FileContent> files; |
|||
/** 回调URL(配置注入) */ |
|||
@JsonProperty("callback_url") |
|||
private String callbackUrl; |
|||
|
|||
@Data |
|||
public static class FileContent { |
|||
/** 文件名 */ |
|||
private String fileName; |
|||
/** 内容分类 */ |
|||
private String contentCategory; |
|||
/** 数据服务解析后的纯文本 */ |
|||
private String parsedText; |
|||
public static class Segment { |
|||
/** 片段内容 */ |
|||
private String content; |
|||
|
|||
/** 补充内容 */ |
|||
private String supplement; |
|||
|
|||
/** 章节标识 */ |
|||
private String chapter; |
|||
|
|||
/** 解析来源文件名(对应 JSON 的 chunk_size 字段) */ |
|||
@JsonProperty("chunk_size") |
|||
private String parseName; |
|||
|
|||
/** 内容类型 */ |
|||
@JsonProperty("content_type") |
|||
private String contentType; |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue