Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Certified Generative AI Engineer Associate Exam - Topic 5 Question 30 Discussion

A Generative Al Engineer would like an LLM to generate formatted JSON from emails. This will require parsing and extracting the following information: order ID, date, and sender email. Here's a sample email:They will need to write a prompt that will extract the relevant information in JSON format with the highest level of output accuracy.Which prompt will do that?
B) You will receive customer emails and need to extract date, sender email, and order ID. Return the extracted information in JSON format. Here's an example: {''date'': ''April 16, 2024'', ''sender_email'': ''sarah.lee925@gmail.com'', ''order_id'': ''RE987D''}
A) You will receive customer emails and need to extract date, sender email, and order ID. You should return the date, sender email, and order ID information in JSON format.
C) You will receive customer emails and need to extract date, sender email, and order ID. Return the extracted information in a human-readable format.
D) You will receive customer emails and need to extract date, sender email, and order ID. Return the extracted information in JSON format.

Databricks Certified Generative AI Engineer Associate Exam - Topic 5 Question 30 Discussion

Actual exam question for Databricks's Databricks Certified Generative AI Engineer Associate exam
Question #: 30
Topic #: 5
[All Databricks Certified Generative AI Engineer Associate Questions]

A Generative Al Engineer would like an LLM to generate formatted JSON from emails. This will require parsing and extracting the following information: order ID, date, and sender email. Here's a sample email:

They will need to write a prompt that will extract the relevant information in JSON format with the highest level of output accuracy.

Which prompt will do that?

Show Suggested Answer Hide Answer
Suggested Answer: B

Problem Context: The goal is to parse emails to extract certain pieces of information and output this in a structured JSON format. Clarity and specificity in the prompt design will ensure higher accuracy in the LLM's responses.

Explanation of Options:

Option A: Provides a general guideline but lacks an example, which helps an LLM understand the exact format expected.

Option B: Includes a clear instruction and a specific example of the output format. Providing an example is crucial as it helps set the pattern and format in which the information should be structured, leading to more accurate results.

Option C: Does not specify that the output should be in JSON format, thus not meeting the requirement.

Option D: While it correctly asks for JSON format, it lacks an example that would guide the LLM on how to structure the JSON correctly.

Therefore, Option B is optimal as it not only specifies the required format but also illustrates it with an example, enhancing the likelihood of accurate extraction and formatting by the LLM.


Contribute your Thoughts:

0/2000 characters
Mila
2 days ago
Option A is too vague. It lacks a specific example.
upvoted 0 times
...
Denae
7 days ago
Agreed! The example helps understand the format.
upvoted 0 times
...
Ciara
12 days ago
I think option B is the best. It gives a clear example.
upvoted 0 times
...
Pamella
18 days ago
Not sure if any of these prompts will work perfectly.
upvoted 0 times
...
Ben
23 days ago
D is solid, but B just edges it out for clarity.
upvoted 0 times
...
Karima
28 days ago
Wait, why would anyone choose C? It's not JSON!
upvoted 0 times
...
Edmond
1 month ago
I think A is too wordy. B is more concise.
upvoted 0 times
...
Keith
1 month ago
Option B is the best choice! It gives a clear example.
upvoted 0 times
...
Lenita
1 month ago
I’m a bit confused about the difference between A and D. They both seem to ask for JSON, but I feel like A gives more context.
upvoted 0 times
...
Aaron
2 months ago
I think I saw a similar question where the prompt needed to be very explicit about the output format. That makes me lean towards option A.
upvoted 0 times
...
Chuck
2 months ago
I'm not entirely sure, but I feel like option B might be too vague without clear instructions on the format.
upvoted 0 times
...
Tanesha
2 months ago
I remember practicing prompts that required specific formatting, so I think options A and D might be the best since they specify JSON format.
upvoted 0 times
...

Save Cancel