Spaces:
Sleeping
Sleeping
Download tests/test_rag.py from Prerna43/Shopify_AI: direct link, hf CLI and curl.
- Browser
- Download file 240 Bytes
-
https://huggingface.co/spaces/Prerna43/Shopify_AI/resolve/main/tests/test_rag.py
- Command line
-
hf download hf://spaces/Prerna43/Shopify_AI/tests/test_rag.py
-
curl -L -o test_rag.py https://huggingface.co/spaces/Prerna43/Shopify_AI/resolve/main/tests/test_rag.py
240 Bytes
| from app.rag.retriever import retrieve_policies | |
| def test_policy_retriever_finds_refund_policy(): | |
| results = retrieve_policies("refund delayed shipment") | |
| assert results | |
| assert any("refund" in item["source"] for item in results) | |