mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-01 12:38:45 +00:00
Fix incorrect value of outputKeys on AnalyzeDocumentsChain (#3010)
This commit is contained in:
parent
19febc77d6
commit
e25528c4f0
@ -89,7 +89,6 @@ class AnalyzeDocumentChain(Chain):
|
||||
"""Chain that splits documents, then analyzes it in pieces."""
|
||||
|
||||
input_key: str = "input_document" #: :meta private:
|
||||
output_key: str = "output_text" #: :meta private:
|
||||
text_splitter: TextSplitter = Field(default_factory=RecursiveCharacterTextSplitter)
|
||||
combine_docs_chain: BaseCombineDocumentsChain
|
||||
|
||||
@ -107,7 +106,7 @@ class AnalyzeDocumentChain(Chain):
|
||||
|
||||
:meta private:
|
||||
"""
|
||||
return [self.output_key]
|
||||
return self.combine_docs_chain.output_keys
|
||||
|
||||
def _call(self, inputs: Dict[str, Any]) -> Dict[str, str]:
|
||||
document = inputs[self.input_key]
|
||||
|
Loading…
Reference in New Issue
Block a user