Creating dbt Sources from Data Warehouse
Setting up source definitions in dbt™ projects involves querying information schemas, documenting tables and columns, ensuring proper YAML formatting, and keeping sources up-to-date as new tables are added. This manual process can be time-consuming and prone to errors.
DinoAI Agent can automatically generate complete and accurate sources.yml files by directly accessing your data warehouse metadata.
Example Prompt
I uploaded some new data to my data warehouse . Can you create a sources.yaml file?

How It Works
After you enter your prompt:
DinoAI connects to your data warehouse and scans available schemas and tables
It retrieves column information including data types
If configured, DinoAI applies your .dinorules preferences
It generates a properly formatted sources.yml file
Example Output
DinoAI will generate a properly formatted sources.yml file like this:
Key Benefits
Time Savings: Reduces a 30+ minute manual task to seconds
Accuracy: Eliminates typos and formatting errors
Maintainability: Makes it easy to keep sources up-to-date as your warehouse evolves
Completeness: Captures all tables and columns without missing anything
When to Use This
When setting up a new dbt™ project
When data engineers have added new tables to your warehouse
During data migrations or schema updates
Any time your source data structure changes
Last updated
Was this helpful?