Download tests/test_rag_e2e.py from Angshul/Bayesian_LangGraph: direct link, hf CLI and curl.
- Browser
- Download file 370 Bytes
-
https://huggingface.co/Angshul/Bayesian_LangGraph/resolve/main/tests/test_rag_e2e.py
- Command line
-
hf download hf://Angshul/Bayesian_LangGraph/tests/test_rag_e2e.py
-
curl -L -o test_rag_e2e.py https://huggingface.co/Angshul/Bayesian_LangGraph/resolve/main/tests/test_rag_e2e.py
370 Bytes
| from evaluation.rag_benchmark import run_benchmark | |
| def test_end_to_end_rag_benchmark(): | |
| x = run_benchmark() | |
| assert x['clean']['bayesian']['end_to_end_accuracy'] == 1.0 | |
| assert x['conflict']['bayesian']['recall_at_1'] == 1.0 | |
| assert x['conflict']['bayesian']['abstention_accuracy'] == 1.0 | |
| assert x['conflict']['bayesian']['grounding_accuracy'] == 1.0 | |