Overview - Documenting models in YAML
What is it?
Documenting models in YAML means writing clear descriptions and details about your data models using a simple text format called YAML. This helps explain what each model does, its columns, and how it fits in the bigger data project. YAML is easy to read and write, making it perfect for sharing information with your team. In dbt, YAML files store this documentation alongside your models.
Why it matters
Without documentation, data models become confusing and hard to use, especially as projects grow or new people join. Documenting models in YAML solves this by making the purpose and structure of data clear and accessible. This saves time, reduces mistakes, and helps everyone trust and understand the data they work with. Imagine trying to use a map without any labels—documentation adds those labels.
Where it fits
Before documenting models, you should understand basic dbt model creation and SQL queries. After learning documentation, you can explore automated testing and data lineage visualization. Documenting models is a key step between building models and ensuring their quality and usability.