ReAct => Reasoning + Acting
-
Its a technique where an LLM
- Thinks (reasoning step)
- Takes an action
- Observes the result
- Repeats until it can answer
-
ReAct was introduced in the Research Paper
React: Synergizing Reasoning and Acting in Language Models -
Core Idea
Thought -> Action -> Observation -> Thought -> Action -> Observation -> Final Answer
Two core ideaa
- using llms in langgraph
-
Refer Here to basic code where we have llm and tool node
-
This code is not completely functional and its fixed after adding a loop Refer Here
