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 Exam Databricks Certified Generative AI Engineer Associate Topic 1 Question 17 Discussion

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

A Generative AI Engineer is creating an agent-based LLM system for their favorite monster truck team. The system can answer text based questions about the monster truck team, lookup event dates via an API call, or query tables on the team's latest standings.

How could the Generative AI Engineer best design these capabilities into their system?

Show Suggested Answer Hide Answer
Suggested Answer: B

In this scenario, the Generative AI Engineer needs to design a system that can handle different types of queries about the monster truck team. The queries may involve text-based information, API lookups for event dates, or table queries for standings. The best solution is to implement a tool-based agent system.

Here's how option B works, and why it's the most appropriate answer:

System Design Using Agent-Based Model: In modern agent-based LLM systems, you can design a system where the LLM (Large Language Model) acts as a central orchestrator. The model can 'decide' which tools to use based on the query. These tools can include API calls, table lookups, or natural language searches. The system should contain a system prompt that informs the LLM about the available tools.

System Prompt Listing Tools: By creating a well-crafted system prompt, the LLM knows which tools are at its disposal. For instance, one tool may query an external API for event dates, another might look up standings in a database, and a third may involve searching a vector database for general text-based information. The agent will be responsible for calling the appropriate tool depending on the query.

Agent Orchestration of Calls: The agent system is designed to execute a series of steps based on the incoming query. If a user asks for the next event date, the system will recognize this as a task that requires an API call. If the user asks about standings, the agent might query the appropriate table in the database. For text-based questions, it may call a search function over ingested data. The agent orchestrates this entire process, ensuring the LLM makes calls to the right resources dynamically.

Generative AI Tools and Context: This is a standard architecture for integrating multiple functionalities into a system where each query requires different actions. The core design in option B is efficient because it keeps the system modular and dynamic by leveraging tools rather than overloading the LLM with static information in a system prompt (like option D).

Why Other Options Are Less Suitable:

A (RAG Architecture): While relevant, simply ingesting PDFs into a vector store only helps with text-based retrieval. It wouldn't help with API lookups or table queries.

C (Conditional Logic with RAG/API/TABLE): Although this approach works, it relies heavily on manual text parsing and might introduce complexity when scaling the system.

D (System Prompt with Event Dates and Standings): Hardcoding dates and table information into a system prompt isn't scalable. As the standings or events change, the system would need constant updating, making it inefficient.

By bundling multiple tools into a single agent-based system (as in option B), the Generative AI Engineer can best handle the diverse requirements of this system.


Contribute your Thoughts:

Vernice
2 days ago
I’m a bit confused about option C. Using conditional statements seems complicated, but I guess it could work if the queries are straightforward.
upvoted 0 times
...
Mitzie
8 days ago
I think option B sounds familiar; it reminds me of a practice question where we had to design a multi-tool agent. That might be the right approach.
upvoted 0 times
...
Sina
13 days ago
I remember we discussed RAG architectures in class, but I'm not sure if ingesting PDFs is the best way to handle real-time queries.
upvoted 0 times
...
Rory
19 days ago
I think option D is worth considering. Having all the relevant information in the system prompt could make it easier to handle a variety of queries, and the RAG architecture could be a good way to tie it all together. I'll need to do some more research on that approach.
upvoted 0 times
...
Maryanne
24 days ago
Option C looks interesting, using the LLM to identify the type of query and then handling it accordingly. That could be a clever way to approach this problem. I'll have to think through the details of how to implement that effectively.
upvoted 0 times
...
Lauran
29 days ago
Hmm, I'm a bit unsure about this one. I'm not super familiar with the RAG architecture, so I'm not sure if option A is the best approach. Maybe I'll take a closer look at the other options and see if I can come up with a more solid strategy.
upvoted 0 times
...
Tu
1 month ago
This seems like a pretty straightforward question. I'd probably go with option B and design a system prompt that lists the available tools the agent can use to solve different types of queries.
upvoted 0 times
...
Kenia
3 months ago
Option B, because who doesn't love a good agent-based system? It's like having a personal assistant, but for your monster trucks.
upvoted 0 times
...
Dorathy
3 months ago
Hold up, are we talking about monster trucks or Jurassic Park? This question is giving me whiplash.
upvoted 0 times
...
Adria
3 months ago
Option D seems a bit heavy-handed. Do we really need to stuff all that information into the system prompt? I'd prefer a more modular approach.
upvoted 0 times
...
Remedios
4 months ago
I'm partial to Option C. Keeping the LLM focused on the core task and using some conditional logic to handle the different query types seems elegant.
upvoted 0 times
...
Fabiola
4 months ago
I prefer option D, having all the information in the system prompt could make it easier to access.
upvoted 0 times
...
Terrilyn
4 months ago
I agree, using text parsing and conditional statements seems efficient.
upvoted 0 times
...
Dudley
4 months ago
I think option C sounds like a good approach.
upvoted 0 times
...
Zoila
4 months ago
Option B looks like the way to go. Bundling the agent with the available tools seems like the most flexible and scalable approach.
upvoted 0 times
Janae
3 months ago
Bundling the agent with tools definitely seems like the best approach for flexibility and scalability.
upvoted 0 times
...
Rebbeca
3 months ago
That sounds like a smart way to design the system. It would make it easier to add new tools in the future.
upvoted 0 times
...
Ruthann
4 months ago
B) Write a system prompt for the agent listing available tools and bundle it into an agent system that runs a number of calls to solve a query.
upvoted 0 times
...
...

Save Cancel