Spaces:
Sleeping
Sleeping
Download pipeline/chunking/splitter_base.py from samithcs/RAG_Book_QA_System: direct link, hf CLI and curl.
- Browser
- Download file 209 Bytes
-
https://huggingface.co/spaces/samithcs/RAG_Book_QA_System/resolve/main/pipeline/chunking/splitter_base.py
- Command line
-
hf download hf://spaces/samithcs/RAG_Book_QA_System/pipeline/chunking/splitter_base.py
-
curl -L -o splitter_base.py https://huggingface.co/spaces/samithcs/RAG_Book_QA_System/resolve/main/pipeline/chunking/splitter_base.py
209 Bytes
| from abc import ABC, abstractmethod | |
| from typing import List, Dict | |
| class SplitterBase(ABC): | |
| def chunk(self, text: str, chunk_size: int, overlap: int) -> List[Dict]: | |
| pass | |