From 511c12dd3985ce682226371c12f8fa70d8c9a8e1 Mon Sep 17 00:00:00 2001 From: warjiang <1096409085@qq.com> Date: Thu, 8 Jun 2023 22:32:51 +0800 Subject: [PATCH] fix: update qa_chain doc for "chai_type" (#5877) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `load_qa_with_sources_chain` method already support four type of chain, including `map_rerank`. update document to prevent any misunderstandings 😀. ![image](https://github.com/hwchase17/langchain/assets/6478745/325260b2-6121-4900-aef9-001febff811a) Fixes # (issue) No, just update document. #### Before submitting #### Who can review? @hwchase17 Tag maintainers/contributors who might be interested: --- langchain/chains/qa_with_sources/loading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/chains/qa_with_sources/loading.py b/langchain/chains/qa_with_sources/loading.py index 2ce4c56e..9eef4dc1 100644 --- a/langchain/chains/qa_with_sources/loading.py +++ b/langchain/chains/qa_with_sources/loading.py @@ -149,7 +149,7 @@ def load_qa_with_sources_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", "refine" and "map_rerank". verbose: Whether chains should be run in verbose mode or not. Note that this applies to all chains that make up the final chain.