Diagnosing Retrieval and Authoritative Sources
Databricks Context Engineer Associate · Lesson 9 of 18 · 58:13
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Databricks Certified Context Engineer Associate exam. In this lesson: reading MLflow evaluation results (retrieval relevance, groundedness, sufficiency, and traces), mapping each symptom to a governance action, authoritative versus derived assets (certification and deprecation tags, lineage, data classification), and constraining retrieval before deployment. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
The wrong table, and a phone number
Thistledown's support agent sometimes quotes rents from an analyst's scratch copy of the rent table, instead of the official one. Once, it even read out another tenant's phone number. This lesson shows how to diagnose retrieval failures from MLflow evaluations and Unity Catalog metadata, and how to keep an agent's retrieval to authoritative sources before it is deployed.
Reading evaluation results
An MLflow evaluation gives each question scores from judges, and a trace of every step the agent took. Low retrieval relevance means the retrieved chunks are off topic for the question. High relevance with low groundedness means the answer goes beyond what the chunks say. Low sufficiency, measured against expected facts, means the right information was never retrieved at all. And the retriever step of the trace names each document and table the agent used, which links the failure to a source in Unity Catalog.
From symptom to governance action
Each symptom points to a different fix. Off topic chunks call for better chunking or index settings, not governance. A wrong or outdated source calls for certification, deprecation, and narrower access. Sensitive data in answers calls for classification tags and masking policies. And documents that never appear call for a check of grants, and of the index sync.
Authoritative and derived assets
An authoritative asset is the governed source of record, like the official rent table owned by the leasing team. Derived assets are copies, extracts, aggregates, and sandbox tables made from it, often outdated or partial. In Unity Catalog, the certification status system tag marks assets as certified or deprecated, and applying it requires the assign permission on that tag. Lineage shows which tables were derived from which, so you can find every copy. And Data Classification tags sensitive columns automatically, so policies can mask them.
Constraining retrieval
Constrain the retrieval space before deployment, not after the first incident. Grant the agent's service principal access only to the certified schemas and tables it needs. Build its indexes and Genie Agents only from certified sources, and deprecate the derived copies. Mask sensitive columns with classification tags and policies. Then run the evaluation again, and check in the traces that every retrieved source is authoritative.
Recap
Let's recap. Judges and traces turn a vague failure into a named one: relevance, groundedness, or sufficiency. The retriever step of the trace links each answer to a source in Unity Catalog. Wrong sources call for certification, deprecation, and narrower grants, while sensitive data calls for tags and masks. Lineage finds derived copies, and the certification tag marks what to trust. And constrain retrieval before deployment, then check the traces.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Retrieval relevance is high, but answers quote outdated rents, and traces show chunks from an analyst’s derived copy, not the certified table. Which action resolves this most directly?
- Instruct the agent to prefer recent values
- Return more results per query
- Add a reranker to the index
- Deprecate the copy and remove the agent’s access to it
Show the answer
Deprecate the copy and remove the agent’s access to it
Mark the copy as deprecated, and remove the agent's access to it, so retrieval can only reach the certified table. “Instruct the agent to prefer recent values” is wrong, since an instruction cannot stop the retriever from returning the copy. “Return more results per query” is wrong, since more results would still include the copy. And “Add a reranker to the index” is wrong, since a reranker reorders relevant chunks, and the copy's chunks are relevant, just outdated.
Answers sometimes include other tenants’ phone numbers, and traces show a phone number column in a table the agent can read. Which governance action fits?
- Tell the agent never to reveal phone numbers
- Use smaller chunks in the index
- Tag the column as sensitive and mask it from the agent
- Drop the phone column from every table
Show the answer
Tag the column as sensitive and mask it from the agent
Tag the column as sensitive, and apply a mask or policy that hides it from the agent's principal. “Tell the agent never to reveal phone numbers” is wrong, since an instruction does not prevent the data from entering the context. “Use smaller chunks in the index” is wrong, since chunk size has nothing to do with which columns the agent can read. And “Drop the phone column from every table” is wrong, since dropping the column everywhere breaks the people who legitimately need it.
Before deployment, the catalog holds certified rent tables and dozens of team copies, and the agent must only use authoritative sources. Which strategy fits?
- Grant only the certified schema, index certified tables
- Instruct the agent to use official tables only
- Let the agent pick tables by their names
- Delete every team copy of the rent tables
Show the answer
Grant only the certified schema, index certified tables
Limit the agent's grants to the certified schema, and build its index from certified tables only. “Instruct the agent to use official tables only” is wrong, since an instruction cannot stop the agent from reading what it is allowed to read. “Let the agent pick tables by their names” is wrong, since table names are a weak signal, and copies often have similar names. And “Delete every team copy of the rent tables” is wrong, since deleting the copies harms the teams that use them, and new copies keep appearing.