from dataclasses import dataclass, field
from typing import Optional

# Rag input anbstraction
@dataclass
class RAGInput:
    path: str
    metadata: Optional[dict] = field(default_factory={})

# Rag document abstraction
@dataclass
class RAGDocument:
    text: str
    length: int
    metadata: Optional[dict] = field(default_factory={})

