Spaces:
Sleeping
Sleeping
RAG: comparison by supported models, partial answer for 1 known model, stronger prompts for context aggregation
de2bc35 | # Run all tests before pushing to Hugging Face. | |
| # Usage: from CarsRUS directory: ./tests/run_tests.sh or bash tests/run_tests.sh | |
| set -e | |
| SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" | |
| PROJECT_ROOT="$(dirname "$SCRIPT_DIR")" | |
| cd "$PROJECT_ROOT" | |
| export PYTHONPATH="$PROJECT_ROOT${PYTHONPATH:+:$PYTHONPATH}" | |
| echo "Running business-logic tests (test_business_logic.py)..." | |
| python tests/test_business_logic.py | |
| echo "" | |
| echo "Running RAG engine tests (test_rag.py)..." | |
| python tests/test_rag.py | |
| echo "" | |
| echo "All tests passed. Safe to push to Hugging Face." | |