Directory Context
Directory Context lets you add entire folders to DinoAI, giving it access to all files within that directory and its subdirectories.
Adding Directory Context
How to use:
Click the DinoAI icon (🪄)
Click the "@" symbol and select "Directories"
Search and/or select the directory(s) to add as context
Add your prompt

When to Use Directory Context
Example Use Cases
Add your
/models/staging/
directory when creating a new staging modelAdd your
/models/marts/finance/
directory when working on finance modelsAdd your entire
/models/
directory when generating documentationAdd your sources directory when updating source definitions
Directory Context is particularly useful when:
Generating documentation for multiple models at once
Understanding patterns across a category of files
Creating new files that should follow existing folder conventions
Making bulk updates to related models
Directory Context in Action
Here's how Directory Context improves DinoAI's results:
Without Directory Context
Prompt: "Document all models in the finance folder"
Result: DinoAI might deliver inconsistent results
With Directory Context
Prompt: "Document all models in the finance folder"
+ Directory Context: /models/marts/finance/
Result: Comprehensive, accurate documentation for all finance models
Best Practices
Be specific - choose the most relevant directory for your task
Use subdirectories rather than root directories when possible
Combine with file context for best results (e.g., add a directory plus a specific example file)
Consider directory size - smaller, more focused directories often provide better context
Last updated
Was this helpful?