Skip to content

The agent engineering platform.

langchain: minor changes to StuffDocumentsChain._get_inputs (#15321)

Romain Fouilland6f15cc64b8e0
diff --git a/libs/langchain/langchain/chains/combine_documents/stuff.py b/libs/langchain/langchain/chains/combine_documents/stuff.py
index ccd228b070..0251db8801 100644
--- a/libs/langchain/langchain/chains/combine_documents/stuff.py
+++ b/libs/langchain/langchain/chains/combine_documents/stuff.py
@@ -182,8 +182,8 @@ class StuffDocumentsChain(BaseCombineDocumentsChain):
def _get_inputs(self, docs: List[Document], **kwargs: Any) -> dict:
"""Construct inputs from kwargs and docs.
- Format and the join all the documents together into one input with name
- `self.document_variable_name`. The pluck any additional variables
+ Format and then join all the documents together into one input with name
+ `self.document_variable_name`. Also pluck any additional variables
from **kwargs.
Args: