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

import lombok.Data;

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

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;

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

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

    @Serial
    private static final long serialVersionUID = 1L;

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

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

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

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

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

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

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

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

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

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