mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-07 05:52:15 +00:00
🐛 Docs Fixes [2 one-liners, examples broken] (#8519)
## Description:
1)Map reduce example in docs is missing an important import statement.
Figured other people would benefit from being able to copy 🍝 the code.
2)RefineDocumentsChain example also broken.
## Issue:
None
## Dependencies:
None. One liner.
## Tag maintainer:
@baskaryan
## Twitter handle:
I mean, it's a one line fix lol. But @will_thompson_k is my twitter
handle.
This commit is contained in:
@@ -184,6 +184,7 @@ You can also use prompt with multi input. In this example, we will use a MapRedu
|
||||
```python
|
||||
from langchain.chains.combine_documents.map_reduce import MapReduceDocumentsChain
|
||||
from langchain.chains.combine_documents.stuff import StuffDocumentsChain
|
||||
from langchain.chains import ReduceDocumentsChain
|
||||
|
||||
map_template_string = """Give the following python code information, generate a description that explains what the code does and also mention the time complexity.
|
||||
Code:
|
||||
|
Reference in New Issue
Block a user