# Create\_stuff\_documents\_chain is not working with latest version of langchain(Version: 1.0.3)

**URL:** <https://forum.langchain.com/t/create-stuff-documents-chain-is-not-working-with-latest-version-of-langchain-version-1-0-3/2092>\
**Category:** LangChain\
**Tags:** self-hosted, python-help\
**Created:** [November 5, 2025, 3:23am UTC](https://forum.langchain.com/t/create-stuff-documents-chain-is-not-working-with-latest-version-of-langchain-version-1-0-3/2092 "2025-11-05T03:23:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PallaviPadav](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/pallavipadav/32/1520_2.png) [@PallaviPadav](https://forum.langchain.com/u/PallaviPadav)\
**Post date:** [November 5, 2025, 3:23am UTC](https://forum.langchain.com/t/create-stuff-documents-chain-is-not-working-with-latest-version-of-langchain-version-1-0-3/2092/1 "2025-11-05T03:23:23Z")

</div>

When I tried to import create\_stuff\_documents\_chain, I’m getting the error ModuleNotFoundError: No module named ‘langchain.chains’. Please help me to resolve. I’m using the latest version of langchain  
(Version: 1.0.3)

Note: I have included below libs in requirements file

langchain

python-dotenv

langchain-openai

langchain-core

langchain-community

bs4

faiss-cpu

from langchain.chains.combine\_documents import create\_stuff\_documents\_chain

* * *

ModuleNotFoundError Traceback (most recent call last)  
Cell In[11], line 1  
----\> 1 from langchain.chains.combine\_documents import create\_stuff\_documents\_chain

ModuleNotFoundError: No module named ‘langchain.chains’

---

<div class="post-metadata">

**Author:** ![Jameskanyiri](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/jameskanyiri/32/993_2.png) [@Jameskanyiri](https://forum.langchain.com/u/Jameskanyiri)\
**Post date:** [November 5, 2025, 3:56am UTC](https://forum.langchain.com/t/create-stuff-documents-chain-is-not-working-with-latest-version-of-langchain-version-1-0-3/2092/2 "2025-11-05T03:56:27Z")

</div>

In **LangChain 1.0** , the **`langchain.chains`** module has been moved to the **`langchain-classic`** package.

To fix your error:

1. **Install `langchain-classic`** :

2. **Update your import** :

**Note** : LangChain 1.0 recommends using **`create_agent`** instead of legacy chains for new projects. Legacy chains are maintained in **`langchain-classic`** for backward compatibility.

Check the RAG guide for current beste practices

> **[Build a RAG agent with LangChain - Docs by LangChain](https://docs.langchain.com/oss/python/langchain/rag)**

---

<div class="post-metadata">

**Author:** ![praneeth\_39](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@praneeth\_39](https://forum.langchain.com/u/praneeth_39)\
**Post date:** [January 25, 2026, 11:04pm UTC](https://forum.langchain.com/t/create-stuff-documents-chain-is-not-working-with-latest-version-of-langchain-version-1-0-3/2092/4 "2026-01-25T23:04:21Z")

</div>

## For LangChain.js

In version 1.0, the langchain.chains module is moved to langchain/classic.

To fix it:

1. Install the package:

```auto
npm i @langchain/classic

```

1. Import:

```auto
import { createStuffDocumentsChain } from "@langchain/classic/chains/combine_documents";

```

---

<div class="post-metadata">

**Author:** ![MayukhBanerjee](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/mayukhbanerjee/32/2464_2.png) [@MayukhBanerjee](https://forum.langchain.com/u/MayukhBanerjee)\
**Post date:** [February 27, 2026, 8:29pm UTC](https://forum.langchain.com/t/create-stuff-documents-chain-is-not-working-with-latest-version-of-langchain-version-1-0-3/2092/5 "2026-02-27T20:29:59Z")

</div>

Thank you, this was helpful

---

<div class="post-metadata">

**Author:** ![pawel-twardziak](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/pawel-twardziak/32/960_2.png) [@pawel-twardziak](https://forum.langchain.com/u/pawel-twardziak)\
**Post date:** [February 27, 2026, 8:35pm UTC](https://forum.langchain.com/t/create-stuff-documents-chain-is-not-working-with-latest-version-of-langchain-version-1-0-3/2092/6 "2026-02-27T20:35:45Z")

</div>

hi @MayukhBanerjee 🙂 if that was helped, could you mark @Jameskanyiri 's answer as `Solution` for this post? Thanks in advance 🙂
