Challenge - 5 Problems
ReAct Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding the ReAct pattern's main purpose
What is the primary goal of the ReAct pattern in AI systems?
Attempts:
2 left
💡 Hint
Think about how ReAct mixes thinking and doing together.
✗ Incorrect
The ReAct pattern integrates reasoning and acting steps so the AI can think and act in a loop, improving decisions.
❓ Predict Output
intermediate2:00remaining
Output of a simple ReAct loop
Given the following pseudo-code for a ReAct loop, what will be the final output?
Prompt Engineering / GenAI
thoughts = [] actions = [] for step in range(2): thoughts.append(f"Think {step}") actions.append(f"Act {step}") output = thoughts + actions print(output)
Attempts:
2 left
💡 Hint
Look at how thoughts and actions are appended and combined.
✗ Incorrect
The code collects all thoughts first, then all actions, so the output lists thoughts first then actions.
❓ Model Choice
advanced2:00remaining
Choosing a model architecture for ReAct
Which model architecture best supports the ReAct pattern by enabling both reasoning and acting in a single framework?
Attempts:
2 left
💡 Hint
ReAct needs a model that can generate text and interact with tools.
✗ Incorrect
Transformer-based language models can generate reasoning steps and call external tools, fitting ReAct's needs.
❓ Hyperparameter
advanced2:00remaining
Hyperparameter affecting ReAct reasoning depth
Which hyperparameter most directly controls how many reasoning steps the ReAct pattern performs before acting?
Attempts:
2 left
💡 Hint
Think about what limits the number of times the model thinks before acting.
✗ Incorrect
The maximum number of reasoning iterations sets how many reasoning steps happen before an action.
❓ Metrics
expert2:00remaining
Evaluating ReAct model performance
Which metric best measures how well a ReAct model balances correct reasoning and effective actions?
Attempts:
2 left
💡 Hint
Consider a metric that captures both thinking and doing quality.
✗ Incorrect
A combined accuracy metric that checks reasoning correctness and action success best evaluates ReAct models.