Databricks Generative AI Engineer Associate · Section 3 · 30% of the exam
Select Langchain/similar tools for use in a Generative AI application
One of the objectives of the Databricks Certified Generative AI Engineer Associate exam, in the section “Application Development”. Here is what it covers, the points to remember and a question to try.
What it covers
LangChain, LangGraph, LlamaIndex, DSPy and the OpenAI Agents SDK each solve a different part of building a GenAI application. This lesson shows when to pick each one, which Databricks integration packages connect them to models, retrievers and governed tools, and how MLflow traces whichever one you choose.
Points to remember
- LangChain = composable components and LCEL chains; LangGraph = stateful graphs with cycles, checkpointers and human-in-the-loop.
- LlamaIndex specialises in document ingestion, indexing and query engines; DSPy optimizes prompts and few-shot examples against a metric.
databricks-langchainprovidesChatDatabricks,DatabricksEmbeddings,DatabricksVectorSearch,VectorSearchRetrieverTool,UCFunctionToolkitandGenieAgent.databricks-openaiprovides theDatabricksOpenAIclient,VectorSearchRetrieverTool,UCFunctionToolkitandMcpServerToolkit.mlflow.langchain.autolog()traces both LangChain and LangGraph;mlflow.openai.autolog()covers the OpenAI SDK and Agents SDK;@mlflow.tracecovers your own code.
Try a question
A research team's prototype must load documents from PDF, HTML and Markdown files, split them into nodes, build an index and answer questions through a query engine. The team says that the hardest part of the project is ingesting and querying these many document sources. Which framework is best known for exactly this?
- ALlamaIndex
- BThe OpenAI Agents SDK
- CDSPy
- DLangGraph
Show the answer
A. LlamaIndex specializes in loading, parsing, indexing and querying documents, with readers, node parsers, indexes and query engines as its core components. Choose it when the hard part of the application is ingesting and querying many document sources. On Databricks, mlflow.llama_index.autolog() traces its runs.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Frameworks and tools for GenAI applications teaches this objective (about 40 minutes), and 11 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Qualitatively assess responses to identify common issues such as quality and safety
- Select chunking strategy based on model & retrieval evaluation
- Augment a prompt with additional context from a user's input based on key fields, terms, and intents
- Create a prompt that adjusts an LLM's response from a baseline to a desired output
- Implement LLM guardrails to prevent negative outcomes
- Select the best LLM based on the attributes of the application to be developed
- Select an embedding model context length based on source documents, expected queries, and optimization strategy
- Select a model from a model hub or marketplace for a task based on model metadata/model cards
- Select the best model for a given task based on common metrics generated in experiments
- Utilize MLflow and Agent Framework for developing agentic systems
- Compare the evaluation and monitoring phases of the Gen AI application life cycle
- Enable multi-agent systems to leverage Genie Spaces or conversational API to retrieve data