When to use it
Use this prompt when you receive a new export, inherit a warehouse table without documentation, or need to onboard colleagues to a dataset. It is also a good first step before any analysis, because misunderstanding a single column, such as whether an amount includes tax, can make every later number wrong.
The prompt works best one table at a time. For a whole database, start with the tables people query most often and add the others gradually, keeping each dictionary next to the table definition so it stays up to date when columns change. A dictionary nobody maintains quickly becomes another source of confusion.
How to customize it
- [TABLE NAME] and [SOURCE] help the model recognize common system conventions, such as CRM or ecommerce exports.
- [WHAT ONE ROW REPRESENTS] is the grain. If you are unsure, say so; the prompt asks the model to propose and verify it.
- [READER] changes the vocabulary. Business users need fewer technical details and more examples.
- [SCHEMA] and [SAMPLE] are the evidence. Mask names, emails and payment data before pasting, but keep formats intact.
Why it works
A data dictionary is mostly careful observation, which language models do well when given real rows. The fixed columns ensure that null meaning and quality warnings, the parts people usually skip, are always covered.
The confidence column is the important guardrail. A column called “revenue” might be gross, net or in cents; marking definitions as inferred tells readers which ones still need confirmation. Asking for the grain and a primary key check prevents the classic error of double counting after a join.
Tips and variations
- Send the open questions to the data owner and paste the answers back to produce a final version.
- Ask for the dictionary as CSV or YAML if it will live in a data catalog or in your repository.
- If your assistant can run code on an uploaded file, ask it to compute null rates and distinct counts instead of estimating them from the sample.
- Continue with the CSV data cleaning plan or the KPI definitions prompt.