Make your first ReAct AI agent in 6 loc
I made a library so you don't have to prompt engineer agents manually.
The ReAct model is an amazing technique to create AI agents. Here's how it works:
The agent iterates these 3 steps until an answer is found:
1. Think: Plan the optimal next action given the context and findings up to the current step.
2. Act: Use a tool to execute the action planned in step 1.
3. Observe: Summarise the results computed by the tool and find relevant info to be passed into the next iteration.
You can create ReAct agents with Nebulous AI without having to prompt engineer from scratch.
I made this ReAct agent to find statistics on income inequality, in 6 lines of code.
Colab notebook: https://colab.research.google.com/github/sarthakrastogi/nebulousai/blob/main/examples/react_agent_examples/agent_to_research_income_equality.ipynb