[GH-ISSUE #1006] cannot import name 'hub' from 'langchain' #132

Closed
opened 2026-02-17 17:19:14 -05:00 by yindo · 2 comments
Owner

Originally created by @zkailinzhang on GitHub (Oct 19, 2025).
Original GitHub issue: https://github.com/langchain-ai/docs/issues/1006

code from here: https://python.langchain.com/docs/tutorials/rag/

Originally created by @zkailinzhang on GitHub (Oct 19, 2025). Original GitHub issue: https://github.com/langchain-ai/docs/issues/1006 code from here: https://python.langchain.com/docs/tutorials/rag/
yindo closed this issue 2026-02-17 17:19:14 -05:00
Author
Owner

@mdrxy commented on GitHub (Oct 20, 2025):

Those docs are deprecated / no longer accurate - see the new docs and migration guide here

Change to import from langchain_classic instead of langchain

@mdrxy commented on GitHub (Oct 20, 2025): Those docs are deprecated / no longer accurate - see the new docs and [migration guide here](https://docs.langchain.com/oss/python/migrate/langchain-v1) Change to import from `langchain_classic` instead of `langchain`
Author
Owner

@mdrxy commented on GitHub (Oct 20, 2025):

Re-opening for visibility

@mdrxy commented on GitHub (Oct 20, 2025): Re-opening for visibility
yindo changed title from cannot import name 'hub' from 'langchain' to [GH-ISSUE #1006] cannot import name 'hub' from 'langchain' 2026-06-05 17:25:14 -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#132