Skip to content

Picking the model flavor, embedding model, retriever, and other pieces a RAG application needs

A RAG application in Databricks is packaged as an MLflow model that ties together an embedding model, a retriever, and the underlying LLM into a single logged artifact. When logging this model, engineers must correctly specify the model flavor, dependencies, input example, and signature so the model can be validated, reproduced, and deployed via Model Serving.

1 · Learn the must-know

  • The model flavor (e.g., pyfunc or langchain) determines how MLflow serializes and loads the RAG chain, and pyfunc is the most flexible choice for custom retrieval-augmented logic.
  • The embedding model converts both documents and user queries into vector representations and must be the same model used to build the vector index to ensure compatible embeddings.
  • The retriever is typically a Databricks Vector Search index queried for similarity search, and it must be referenced by its endpoint/index name when the model is logged so it can reconnect at inference time.
  • Dependencies (pip requirements or conda environment) must be explicitly captured when logging the model so the exact library versions are reproduced in the serving environment.
  • An input_example should be provided at logging time because it lets MLflow validate the model can run end-to-end and helps auto-infer the model signature.
  • The model signature defines expected input and output schemas; without a correct signature, Model Serving may reject malformed requests or fail to validate responses properly.

2 · Check your understanding

Check this objectiveFree · always available

A Generative AI Engineer builds a RAG chain in Databricks using LangChain to orchestrate retrieval from a Vector Search index and calls to a Foundation Model API endpoint. The chain must be logged to MLflow so it can be deployed to a Mosaic AI Agent endpoint and reloaded later without the engineer having to reconstruct the original Python chain object by hand. Which model flavor should the engineer use when logging this chain? Which model flavor should the engineer use when logging this chain?

Your objective map0 tried · 0 answered correctly · 56 untouched

What you have tried across Databricks GenAI Engineer's objectives, not a readiness score.

Design Applications10.71% of the exam*0 of 6 tried
Data Preparation14.29% of the exam*0 of 8 tried
Application Development23.21% of the exam*0 of 13 tried
Assembling and Deploying Applications26.79% of the exam*0 of 15 tried
Governance7.14% of the exam*0 of 4 tried
Evaluation and Monitoring17.86% of the exam*0 of 10 tried

* Our estimate. Databricks publishes no section weights.

3 · Keep going