Hands-On LangChain for LLM Applications Development: Output Parsing

Youssef Hosni
Towards AI
Published in
8 min readMar 4, 2024

--

When developing a complex application with a Language Model (LLM), it’s common to specify the desired output format, such as JSON, and designate particular keys for organizing the data.

Let’s consider the chain of thought reasoning method as an illustrative example. In this method, the LLM’s thinking process is represented by distinct stages: “thought” indicates the reasoning process, “action” denotes the subsequent action taken, and “observation” reflects the learning acquired from that action, and so forth. By…

--

--