Langchain
LangchainOutputParser #
Bases: ChainableOutputParser
Langchain output parser.
Source code in llama-index-integrations/output_parsers/llama-index-output-parsers-langchain/llama_index/output_parsers/langchain/base.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
parse #
parse(output: str) -> Any
Parse, validate, and correct errors programmatically.
Source code in llama-index-integrations/output_parsers/llama-index-output-parsers-langchain/llama_index/output_parsers/langchain/base.py
22 23 24 25 26 27 |
|
format #
format(query: str) -> str
Format a query with structured output formatting instructions.
Source code in llama-index-integrations/output_parsers/llama-index-output-parsers-langchain/llama_index/output_parsers/langchain/base.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|