From 86189cdcf9085c569fc94f012e5359d0d5d1f736 Mon Sep 17 00:00:00 2001 From: Francis Felici Date: Fri, 14 Apr 2023 12:51:30 -0300 Subject: [PATCH] Update load_qa_chain() docstring (#2900) Seems to be missing `map_rerank` as a potential argument of `chain_type` --- langchain/chains/question_answering/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/chains/question_answering/__init__.py b/langchain/chains/question_answering/__init__.py index 522f7906..2ba684f0 100644 --- a/langchain/chains/question_answering/__init__.py +++ b/langchain/chains/question_answering/__init__.py @@ -196,7 +196,7 @@ def load_qa_chain( Args: llm: Language Model to use in the chain. chain_type: Type of document combining chain to use. Should be one of "stuff", - "map_reduce", and "refine". + "map_reduce", "map_rerank", and "refine". verbose: Whether chains should be run in verbose mode or not. Note that this applies to all chains that make up the final chain. callback_manager: Callback manager to use for the chain.