QuestionQ9

Design Applications

A Generative AI Engineer must design an LLM pipeline for multi-stage reasoning that uses external tools. To do this effectively, the LLM needs to plan and adapt its actions while carrying out complex reasoning tasks.

Which approach accomplishes this?

  • A Train the LLM to generate a single, comprehensive response without interacting with any external tools, relying solely on its pre-trained knowledge.
  • B Use a Chain-of-Thought (CoT) prompting technique to guide the LLM through a series of reasoning steps, then manually input the results from external tools for the final answer.
  • C Implement a framework like ReAct, which allows the LLM to generate reasoning traces and perform task-specific actions that leverage external tools if necessary.
  • D Encourage the LLM to make multiple API calls in sequence without planning or structuring the calls, allowing the LLM to decide when and how to use external tools spontaneously.
Explanation

ReAct interleaves reasoning traces with task-specific actions, allowing an LLM to form, maintain, and revise plans while invoking external tools and using their results in subsequent reasoning.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!