Skip to main content
File context gives DinoAI specific files to work from, so its answers follow your code patterns, naming conventions, and existing structure.
Example use cases
  • Add a sources.yml file to help DinoAI understand your source definitions
  • Add an existing model to show DinoAI your preferred SQL style
  • Add several related models when you build a complex join
  • Add schema.yml files to show DinoAI your documentation patterns
DinoAI already knows which file you have open and which tabs are open. Add a file when your request is about a file you don’t have open, or when you want DinoAI to treat a file as an example.

Add a file from the @ menu

  1. In the DinoAI message box, select @ (Add context), or type @.
  2. Pick a file under Recent Files, or type part of its name and pick it under Files & Folders.
  3. Type your request and send it.
The file shows as a chip above your message. Repeat to add more files.

Drag a file into the chat

Drag a file from the file explorer and drop it on the DinoAI panel. The panel shows Drop to add as context. The file is added as a chip.

Add a file’s path from the editor

Right-click a file in the file explorer, an editor tab, or the editor, and select Add Filename to Chat. DinoAI adds the file’s path to your message, under Files:.

PDFs and images

When you add a PDF or an image file (.png, .jpg, .jpeg, .gif, or .webp) from your repository as a chip, DinoAI receives the file itself, not only its path.

File context in action

Without file context

With file context


Best practices
  1. Add example files that show the patterns you want DinoAI to follow
  2. Add only relevant files. Too many files can dilute the focus
  3. Include both SQL and YAML files for complete context
  4. Start with high-quality examples. DinoAI follows the patterns it sees
In Ask mode, file chips aren’t sent. Ask receives the @name that the @ menu writes into your message, and can read the file itself.