package com.pavis.admin.aigc.model.resp;

import lombok.Data;

import io.swagger.v3.oas.annotations.media.Schema;

import com.pavis.admin.common.model.resp.BaseResp;
import java.io.Serial;
import java.time.*;
import java.math.BigDecimal;

/**
 * 文档切片信息
 *
 * @author semi
 * @since 2025/05/26 17:28
 */
@Data
@Schema(description = "文档切片信息")
public class DocChunkResp extends BaseResp {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 向量库的ID
     */
    @Schema(description = "向量库的ID")
    private String embedStoreId;

    /**
     * 文档ID
     */
    @Schema(description = "文档ID")
    private Long docId;

    /**
     * 知识库ID
     */
    @Schema(description = "知识库ID")
    private Long knowledgeId;

    /**
     * 切片索引
     */
    @Schema(description = "切片索引")
    private Integer chunkIndex;

    /**
     * 切片内容
     */
    @Schema(description = "切片内容")
    private String content;

    /**
     * 字符数
     */
    @Schema(description = "字符数")
    private Integer wordNum;

    /**
     * 元数据
     */
    @Schema(description = "元数据")
    private String metadata;

    /**
     * 向量数据(可选存储)
     */
    @Schema(description = "向量数据(可选存储)")
    private String embedding;

    /**
     * 状态:0无效 1有效
     */
    @Schema(description = "状态:0无效 1有效")
    private Boolean status;

    /**
     * 相关性分数
     */
    @Schema(description = "相关性分数")
    private BigDecimal relevanceScore;

    /**
     * 修改人
     */
    @Schema(description = "修改人")
    private Long updateUser;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

    /**
     * 文档名称
     */
    private String name;
}