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
Contributor III

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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group