Databricks Generative AI Engineer Associate Question 124
Single answerYou are building a generative AI chatbot using a large language model (LLM) to assist users in planning their travel itineraries. A user asks, 'Can you create a 3-day travel plan for Paris with a focus on art museums and local cuisine?' The chatbot is programmed to augment the prompt by extracting key fields, terms, and intents from the user's input. Which of the following augmented prompts would be most effective for generating a relevant response?
- A
Generate a 3-day travel plan for Paris.
- B
Create a 3-day itinerary for Paris, focusing on art museums and local cuisine.
- C
Generate a travel plan for Paris with tourist attractions.
- D
Create a 3-day itinerary that includes art museums and local cuisine.
Show answer and explanation
Correct answer: B
Explanation
When augmenting a prompt, it is essential to extract and include all key fields, terms, and intents from the user's input. The correct option (2) successfully integrates all critical elements: the 3-day duration, the location (Paris), and the specific focus on art museums and local cuisine. This ensures that the generative AI model produces a highly relevant response to the user's request.
- A. Incorrect.
This option fails to include the user's focus on art museums and local cuisine, which are critical to the intent, making it incomplete.
- B. Correct.
This option effectively incorporates all key fields and intents from the user's input: the 3-day duration, the location (Paris), and the focus on art museums and local cuisine.
- C. Incorrect.
This option mentions tourist attractions but omits the specific focus on art museums and local cuisine, which are key to the user's request.
- D. Incorrect.
This option omits the location (Paris) and the duration (3 days), which are essential parts of the user's input.