From 6f15cc64b8e0e6ef2750e950d49e88940aad908e Mon Sep 17 00:00:00 2001 From: Romain Fouilland <32517197+romainfd@users.noreply.github.com> Date: Fri, 29 Dec 2023 20:53:30 +0100 Subject: [PATCH] langchain: minor changes to StuffDocumentsChain._get_inputs (#15321) Correcting a small typo ('the' instead of 'then') and changing another 'the' (instead of 'then' too, it was a hard day for the 'n' key :D) to 'also' to match better with what is done in the code --- libs/langchain/langchain/chains/combine_documents/stuff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/langchain/langchain/chains/combine_documents/stuff.py b/libs/langchain/langchain/chains/combine_documents/stuff.py index ccd228b0706..0251db8801b 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: