Databricks Generative AI Engineer Associate Question 147
Select 3You are building an agent in Databricks that interacts with a generative AI model to summarize customer support tickets and provide resolutions. The agent must expose functions to retrieve ticket data, generate a summary, and send a response email. How should you structure the prompt template to ensure the agent can use these functions effectively?
- A
Include a clear description of each function's purpose in the prompt template.
- B
Provide examples of inputs and outputs for each function in the prompt template.
- C
Define the order in which functions should be executed in the prompt template.
- D
Avoid mentioning the available functions in the prompt template to keep it concise.
- E
Use structured formatting (e.g., JSON) to list the available functions in the prompt template.
Show answer and explanation
Correct answers: A, B, E
Explanation
To effectively expose functions in a prompt template, it is critical to clearly describe their purpose, provide examples of inputs and outputs, and use structured formatting. This enables the generative AI model to understand and utilize the functions correctly. Avoiding mention of functions would hinder functionality, and defining execution order is not a typical responsibility of the prompt template.
- A. Correct.
Including a clear description of each function's purpose helps the agent understand when and why to invoke specific functions, improving its effectiveness.
- B. Correct.
Providing examples of inputs and outputs ensures the agent knows what data it can work with and what results to expect, making function usage more reliable.
- C. Incorrect.
While defining execution order might be useful in some systems, it is not typically part of a prompt template for a generative AI agent. Execution order is usually determined programmatically or contextually.
- D. Incorrect.
Avoiding mention of available functions would make the agent unaware of its capabilities, reducing its functionality and effectiveness.
- E. Correct.
Using structured formatting like JSON to list functions ensures clarity and allows for easy parsing by the agent, which is essential for effective function exposure.