using Shared.Data.Entities;

namespace Rag.Data.Entities;

public sealed class RagDocumentEntity : BaseEntity
{
    public string DocumentType { get; set; } = string.Empty;
    public string Title { get; set; } = string.Empty;
    public string? SourceUrl { get; set; }
    public string RawText { get; set; } = string.Empty;
    public string TextHash { get; set; } = string.Empty;
    public double TypeConfidence { get; set; }
    public string MetadataJson { get; set; } = "{}";

    public ICollection<RagChunkEntity> Chunks { get; set; } = [];
}
