cancel
Showing results for 
Search instead for 
Did you mean: 
Generative AI
Explore discussions on generative artificial intelligence techniques and applications within the Databricks Community. Share ideas, challenges, and breakthroughs in this cutting-edge field.
cancel
Showing results for 
Search instead for 
Did you mean: 

from langchain.qa import RetrievalQA

dinusr
New Contributor

Hi ,

I have installed the library using "%pip install langchain", but still I couldn't import RetrievalQA. Could anyone help?

1 REPLY 1

filipniziol
Esteemed Contributor

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()

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now