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