A simple Python implementation of the ReAct pattern for LLMs
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
Simon Willison published a minimal Python implementation of the ReAct pattern, which lets an LLM alternate between reasoning and calling external tools such as Wikipedia search, a blog search, and a calculator, with results fed back into the conversation.