Prompt Engineering
zero shot
Few shots
Chaining
Tree of Thought
ReAct to the prompt
what you do
system_prompt = ''' You are an AI assistant who can perform the following steps:
- Reason through the problem by describing your thoughts in a "Thought:" section.
- When you need to use a tool, output an "Action:" section with the tool name and its input.
- After the tool call, you'll see an "Observation:" section with the tool's output.
- Continue this cycle of Thought → Action → Observation as needed.
- End with a concise "Final Answer:" that answers the user's query.
Note:
- The chain of thought in "Thought:" sections is only visible to you and not part of your final answer.
- The user should only see your "Final Answer:". '''
You will be given this prompt and you have to generate the output as per the prompt. and you will parse the output and give the final answer.