Spaces:
Configuration error
Configuration error
Download app/retrieval/source_priority.py from Samaksh25/GST_RAG_BACKEND: direct link, hf CLI and curl.
- Browser
- Download file 404 Bytes
-
https://huggingface.co/spaces/Samaksh25/GST_RAG_BACKEND/resolve/main/app/retrieval/source_priority.py
- Command line
-
hf download hf://spaces/Samaksh25/GST_RAG_BACKEND/app/retrieval/source_priority.py
-
curl -L -o source_priority.py https://huggingface.co/spaces/Samaksh25/GST_RAG_BACKEND/resolve/main/app/retrieval/source_priority.py
404 Bytes
| def source_priority(source_path: str) -> int: | |
| """ | |
| Lower number = higher priority | |
| """ | |
| s = source_path.lower() | |
| if "aar" in s or "advance" in s: | |
| return 1 | |
| if "act" in s or "notification" in s: | |
| return 2 | |
| if "circular" in s: | |
| return 3 | |
| if "form" in s or "apl" in s: | |
| return 4 | |
| if "excel" in s or ".xlsx" in s: | |
| return 5 | |
| return 10 | |