I'm currently working with langchain and I saw that RetrievalQA was deprecated and that create_retrieval_chain can be used instead. I tried the example mentioned in the documentation : from langchain.chains import create_retrieval_chain from langchain.chains.combine_documents import create_stuff_documents_chain from langchain_core.prompts import ChatPromptTemplate from langchain_openai import ChatOpenAI retriever = ... # Your retriever llm =...
Originally asked by Saad Cherkaoui Ikbal on Stack Exchange (stackoverflow) (CC BY-SA 4.0).