Download app/infrastructure/document_loader/base.py from aimprabu/RAG_Documentation_Assistant: direct link, hf CLI and curl.
- Browser
- Download file 284 Bytes
-
https://huggingface.co/spaces/aimprabu/RAG_Documentation_Assistant/resolve/main/app/infrastructure/document_loader/base.py
- Command line
-
hf download hf://spaces/aimprabu/RAG_Documentation_Assistant/app/infrastructure/document_loader/base.py
-
curl -L -o base.py https://huggingface.co/spaces/aimprabu/RAG_Documentation_Assistant/resolve/main/app/infrastructure/document_loader/base.py
284 Bytes
| from abc import ABC, abstractmethod | |
| class DocumentLoaderBase(ABC): | |
| """Abstract Base Class defining the document loader adapter contract.""" | |
| def load(self, source: str) -> str: | |
| """Load document content and return raw text string.""" | |
| pass | |