Skip to contents

Set chain of thought mode for a prompt

Usage

answer_by_chain_of_thought(prompt, extract_from_finish_brackets = TRUE)

Arguments

prompt

A prompt object or a single string

extract_from_finish_brackets

A logical indicating whether the final answer should be extracted from the text inside the "FINISH..." brackets.

Value

A prompt with the chain-of-thought mode added.