its under documented, but checkout things like our OutputParsers – https://
github.com/hwchase17/lang
chain/blob/3e55f1474e5ad13f90c233b7f85480e996765e71/langchain/prompts/base.py#L67
… they can parse an LLM output into a specific format. however, it is an open question about what to do if format is not expected… retry?
LangChain OutputParsers: Formatting LLM Outputs and Error Handling
By
–
Leave a Reply