NoOutputParser Class — langchain Architecture
Architecture documentation for the NoOutputParser class in chain_extract.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD e19501e2_a888_d99b_5e13_63a5357fb80e["NoOutputParser"] 0eb98ce3_194e_b222_d9bd_d9a220621a2c["chain_extract.py"] e19501e2_a888_d99b_5e13_63a5357fb80e -->|defined in| 0eb98ce3_194e_b222_d9bd_d9a220621a2c 8ab96923_cf2b_711e_3e25_016f3d51202a["parse()"] e19501e2_a888_d99b_5e13_63a5357fb80e -->|method| 8ab96923_cf2b_711e_3e25_016f3d51202a
Relationship Graph
Source Code
libs/langchain/langchain_classic/retrievers/document_compressors/chain_extract.py lines 28–38
class NoOutputParser(BaseOutputParser[str]):
"""Parse outputs that could return a null string of some sort."""
no_output_str: str = "NO_OUTPUT"
@override
def parse(self, text: str) -> str:
cleaned_text = text.strip()
if cleaned_text == self.no_output_str:
return ""
return cleaned_text
Source
Frequently Asked Questions
What is the NoOutputParser class?
NoOutputParser is a class in the langchain codebase, defined in libs/langchain/langchain_classic/retrievers/document_compressors/chain_extract.py.
Where is NoOutputParser defined?
NoOutputParser is defined in libs/langchain/langchain_classic/retrievers/document_compressors/chain_extract.py at line 28.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free