Files
common_agent/src/main/java/com/bruce/rag/entity/RagDocumentParseResult.java

63 lines
1.8 KiB
Java

package com.bruce.rag.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bruce.common.domain.model.BaseEntity;
import com.bruce.rag.typehandler.PgJsonbStringTypeHandler;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "rag_document_parse_result", autoResultMap = true)
@Schema(description = "RAG文档解析结果快照")
public class RagDocumentParseResult extends BaseEntity {
@Schema(description = "知识库ID")
@TableField("store_id")
private Long storeId;
@Schema(description = "文档ID")
@TableField("document_id")
private Long documentId;
@Schema(description = "解析文本")
@TableField("parsed_text")
private String parsedText;
@Schema(description = "文本长度")
@TableField("text_length")
private Integer textLength;
@Schema(description = "页数")
@TableField("page_count")
private Integer pageCount;
@Schema(description = "工作表数量")
@TableField("sheet_count")
private Integer sheetCount;
@Schema(description = "解析元数据JSON")
@TableField(value = "metadata_json", typeHandler = PgJsonbStringTypeHandler.class)
private String metadataJson;
@Schema(description = "解析结果哈希")
@TableField("content_hash")
private String contentHash;
@Schema(description = "解析版本")
@TableField("parse_version")
private Integer parseVersion;
@Schema(description = "是否启用")
@TableField("enabled")
private Boolean enabled;
@Schema(description = "备注")
@TableField("remark")
private String remark;
}