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
Aaron
3 days 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
8 days 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
13 days 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