diff --git a/docs/_scripts/copy_notebooks.py b/docs/_scripts/copy_notebooks.py index 1835c0aea..8918d047e 100644 --- a/docs/_scripts/copy_notebooks.py +++ b/docs/_scripts/copy_notebooks.py @@ -26,6 +26,7 @@ _MANUAL = { "branching.ipynb", "dynamically-returning-directly.ipynb", "configuration.ipynb", + "map-reduce.ipynb", "extraction/retries.ipynb", ], "tutorials": [ diff --git a/docs/docs/how-tos/index.md b/docs/docs/how-tos/index.md index b7756b065..8f6fd00e4 100644 --- a/docs/docs/how-tos/index.md +++ b/docs/docs/how-tos/index.md @@ -19,6 +19,7 @@ Recipes showing how to apply common design patterns in your workflows: - [Subgraphs](subgraph.ipynb): How to compose subgraphs within a larger graph - [Branching](branching.ipynb): How to create branching logic in your graphs for parallel node execution +- [Map-reduce](map-reduce.ipynb): How to branch **different views** of the state for parallel node execution (even applying the same node in parallel N times) - [Human-in-the-loop](human-in-the-loop.ipynb): How to incorporate human feedback and intervention The following examples are useful especially if you are used to LangChain's AgentExecutor configurations. diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 5a5b8601b..943b10ec7 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -144,6 +144,7 @@ nav: - Design Patterns: - "Subgraphs": how-tos/subgraph.ipynb - "Branching": how-tos/branching.ipynb + - "Map-reduce": how-tos/map-reduce.ipynb - "Human-in-the-Loop": how-tos/human-in-the-loop.ipynb - "Force Calling a Tool First": how-tos/force-calling-a-tool-first.ipynb - "Dynamic Direct Return": how-tos/dynamically-returning-directly.ipynb