from langchain.qa import RetrievalQA
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2024 04:30 PM
Hi ,
I have installed the library using "%pip install langchain", but still I couldn't import RetrievalQA. Could anyone help?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2024 12:47 AM
Hi @dinusr ,
Are you using the correct namespace langchain.chains to import?
from langchain.chains import RetrievalQA
If yes, try to
1. Install the most recent version %pip install --upgrade --force-reinstall langchain
2. Restart the kernel : dbutils.library.restartPython()

