__all__ = ["IndexJob", "IndexJobStore", "IndexingOrchestrator", "RagService"]


def __getattr__(name: str):
    if name == "IndexJob":
        from app.core.rag.indexing.job_store import IndexJob

        return IndexJob
    if name == "IndexJobStore":
        from app.core.rag.indexing.job_store import IndexJobStore

        return IndexJobStore
    if name == "IndexingOrchestrator":
        from app.core.rag.indexing.orchestrator import IndexingOrchestrator

        return IndexingOrchestrator
    if name == "RagService":
        from app.core.rag.indexing.service import RagService

        return RagService
    raise AttributeError(name)
