Download test_imports.py from d-e-e-k-11/amazon_product: direct link, hf CLI and curl.
- Browser
- Download file 542 Bytes
-
https://huggingface.co/d-e-e-k-11/amazon_product/resolve/main/test_imports.py
- Command line
-
hf download hf://d-e-e-k-11/amazon_product/test_imports.py
-
curl -L -o test_imports.py https://huggingface.co/d-e-e-k-11/amazon_product/resolve/main/test_imports.py
542 Bytes
| try: | |
| from langchain_community.chains import RetrievalQA | |
| print('from langchain_community.chains import RetrievalQA') | |
| except Exception as e: | |
| print(f'community failed: {e}') | |
| try: | |
| from langchain.chains import RetrievalQA | |
| print('from langchain.chains import RetrievalQA') | |
| except Exception as e: | |
| print(f'langchain failed: {e}') | |
| try: | |
| from langchain_classic.chains import RetrievalQA | |
| print('from langchain_classic.chains import RetrievalQA') | |
| except Exception as e: | |
| print(f'classic failed: {e}') | |