# Context

Context is what DinoAI uses to understand your project, data warehouse, and preferences. Better context means more relevant and accurate results.

{% @arcade/embed flowId="42flhygCjJ6X8UhDS57f" url="<https://app.arcade.software/share/42flhygCjJ6X8UhDS57f>" %}

{% hint style="info" %}
With context, it can:

* Reference your specific code structure and naming conventions
* Access your warehouse metadata to reference real tables and columns
* Follow the patterns established in your existing files&#x20;
  {% endhint %}

### Types of Context

DinoAI can utilize different types of context when generating code and answers:

* [**File Context**](https://docs.paradime.io/app-help/documentation/dino-ai/context/file-context) - Individual files from your project
* [**Inline File Context** ](https://docs.paradime.io/app-help/documentation/dino-ai/context/inline-file-context)- Specific code selections and line numbers from your editor
* [**Directory Context**](https://docs.paradime.io/app-help/documentation/dino-ai/context/directory-context) - Entire folders of related files
* [**Terminal Context** ](https://docs.paradime.io/app-help/documentation/dino-ai/context/terminal-conext)- Terminal output, error messages, and command results

### Using Context Effectively

The right context makes DinoAI dramatically more useful. Provide specific context by:

1. Adding individual files for targeted tasks
2. Adding directories for broader patterns
3. Including terminal output for debugging and learning
4. Using [.dinorules](https://docs.paradime.io/app-help/documentation/dino-ai/dino-rules) for consistent standards

{% hint style="info" %}

#### .dinorules

Use [.dinorules](https://docs.paradime.io/app-help/documentation/dino-ai/dino-rules) to set persistent rules for how DinoAI generates code. These rules act as permanent context for all DinoAI interactions.
{% endhint %}
