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

52 lines
1.4 KiB
Java

package com.bruce.rag.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bruce.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("rag_document")
@Schema(description = "RAG知识库文档")
public class RagDocument extends BaseEntity {
@Schema(description = "知识库ID")
@TableField("store_id")
private Long storeId;
@Schema(description = "附件ID")
@TableField("attachment_id")
private Long attachmentId;
@Schema(description = "文档标题")
@TableField("document_title")
private String documentTitle;
@Schema(description = "文档摘要")
@TableField("document_summary")
private String documentSummary;
@Schema(description = "解析状态")
@TableField("parse_status")
private String parseStatus;
@Schema(description = "索引状态")
@TableField("index_status")
private String indexStatus;
@Schema(description = "是否启用")
private Boolean enabled;
@Schema(description = "失败原因")
@TableField("error_message")
private String errorMessage;
@Schema(description = "备注")
private String remark;
}