Files
ds_zagres_ai/run_rag_test.sh
T
Iyeoluwa Akinrinola 1896298a18 Added Rag Featured
2025-05-16 15:24:01 +01:00

23 lines
796 B
Bash
Executable File

#!/bin/bash
# Script to run the RAG test in a Python virtual environment
# Make the script executable
chmod +x test_rag.py
# Check if virtual environment is activated
if [[ -z "$VIRTUAL_ENV" ]]; then
echo "Virtual environment is not activated."
echo "Please activate your virtual environment first with:"
echo "source /path/to/your/venv/bin/activate"
exit 1
fi
echo "Running RAG tests against remote server..."
python test_rag.py --remote --verbose
# If you want to test against a different server, uncomment and modify this line:
# python test_rag.py --api-url "http://your-server-url:port" --verbose
# If you want to test with a specific query, uncomment and modify this line:
# python test_rag.py --remote --query "What information do you have about project X?" --verbose