CertLumen

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-langchain provides ChatDatabricks, DatabricksEmbeddings, DatabricksVectorSearch, VectorSearchRetrieverTool, UCFunctionToolkit and GenieAgent.
  • databricks-openai provides the DatabricksOpenAI client, VectorSearchRetrieverTool, UCFunctionToolkit and McpServerToolkit.
  • mlflow.langchain.autolog() traces both LangChain and LangGraph; mlflow.openai.autolog() covers the OpenAI SDK and Agents SDK; @mlflow.trace covers 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?

  1. ALlamaIndex
  2. BThe OpenAI Agents SDK
  3. CDSPy
  4. 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

← Previous objective · All 56 objectives · Next objective →