Chain of Thought Prompting
Chain of thought prompting is a technique that encourages the language model to think step by step, reasoning through the problem before providing an answer. This can improve the quality of the response and make it easier to understand.
In the below example, we use chain of thought prompting to extract information from an email.
BAML will still parse the response as an OrderInfo
object, even though there is additional text in the response.