Databricks Generative AI Engineer Associate Question 150
Select 3You are tasked with designing a prompt template for a Generative AI agent in Databricks that uses multiple functions to retrieve weather data, recommend restaurants, and provide travel tips. Which of the following elements should you include in the prompt template to effectively expose these functions to the agent?
- A
A clear description of each function's purpose and expected input/output format
- B
A list of all function names without any descriptions
- C
Example usage of functions within the context of a query
- D
A JSON schema defining the structure of inputs and outputs for each function
- E
A detailed explanation of the underlying algorithm used by each function
Show answer and explanation
Correct answers: A, C, D
Explanation
When building prompt templates for an agent, it is crucial to provide clear and structured information about available functions, including their purpose, input/output format, and example usage. This ensures the agent can effectively utilize the functions to generate accurate and contextually relevant responses.
- A. Correct.
Including a clear description ensures that the agent understands the purpose of each function and can use them appropriately.
- B. Incorrect.
Merely listing function names without descriptions does not provide sufficient context for the agent to utilize them effectively.
- C. Correct.
Providing example usage helps the agent understand how to invoke the functions in a practical context.
- D. Correct.
Defining a JSON schema ensures that the agent knows the exact input and output structure, reducing errors during function calls.
- E. Incorrect.
Explaining the underlying algorithms is not necessary for the agent to use the functions, as it focuses on functionality rather than implementation details.