Databricks Generative AI Engineer Associate Question 149
Select 3You are designing a Generative AI agent in Databricks that can interact with users to retrieve data and perform computations. The agent must expose specific functions (e.g., fetch_sales_data, calculate_discount) to the user through prompts. Which considerations are critical when building the agent’s prompt template to expose these functions effectively?
- A
Clearly describe the purpose of each function in the prompt template.
- B
Include examples in the prompt template demonstrating how to invoke the functions.
- C
Use complex language and technical jargon to make the functions more secure.
- D
Ensure that the names of the functions are descriptive and align with their behavior.
- E
Avoid mentioning any functions in the prompt template to prevent user misuse.
Show answer and explanation
Correct answers: A, B, D
Explanation
When building prompt templates to expose functions in a Generative AI agent, clarity and usability are paramount. Clearly describing the functions, providing examples, and using descriptive names ensure users can interact with the agent effectively. Avoiding unnecessary complexity or omitting key details undermines the purpose of the prompt template.
- A. Correct.
Clearly describing the purpose of each function helps users understand what the functions do, improving usability and precision in interactions.
- B. Correct.
Including examples provides clarity on how to use the functions correctly, reducing ambiguity when users interact with the agent.
- C. Incorrect.
Using complex language or technical jargon can confuse users and is unnecessary. Security should be managed through proper authentication, not unclear prompts.
- D. Correct.
Descriptive function names make the agent more intuitive to use and ensure functions align with user expectations.
- E. Incorrect.
Avoiding mentioning functions entirely defeats the purpose of exposing them in the agent's prompt template, making the agent less effective.