[GH-ISSUE #4334] [langchain]: Incorrect import for create_retrieval_chain() in documentation #2798

Open
opened 2026-06-05 17:26:50 -04:00 by yindo · 0 comments
Owner

Originally created by @Kaso45 on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/langchain-ai/docs/issues/4334

Type of issue

issue / bug

Language

Python

Description

In this reference document: https://reference.langchain.com/python/langchain-classic/chains/retrieval/create_retrieval_chain

I found out that the import for create_retrieval_chain() is:
from langchain_classic.chains import create_retrieval_chain

However it is incorrect, based on the official LangChain github repository, it should be:
from langchain_classic.chains.retrieval import create_retrieval_chain

Originally created by @Kaso45 on GitHub (Jun 5, 2026). Original GitHub issue: https://github.com/langchain-ai/docs/issues/4334 ### Type of issue issue / bug ### Language Python ### Description In this reference document: https://reference.langchain.com/python/langchain-classic/chains/retrieval/create_retrieval_chain I found out that the import for create_retrieval_chain() is: `from langchain_classic.chains import create_retrieval_chain` However it is incorrect, based on the official LangChain github repository, it should be: `from langchain_classic.chains.retrieval import create_retrieval_chain`
yindo added the langchainexternal labels 2026-06-05 17:26:50 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#2798