# Directory Context

Directory Context lets you add entire folders to DinoAI, giving it access to all files within that directory and its subdirectories.

{% hint style="info" %}
When you add a directory, DinoAI gains access to all files in that folder, helping it understand patterns across multiple related files.
{% endhint %}

### Adding Directory Context

**How to use:**

1. Click the DinoAI icon (🪄)
2. Click the "@" symbol and select "Directories"
3. Search and/or select the directory(s) to add as context
4. Add your prompt

<figure><img src="/files/DrS2TWZoewYraJL3bmAb" alt=""><figcaption></figcaption></figure>

### When to Use Directory Context

{% hint style="info" %}

#### Example Use Cases

* Add your `/models/staging/` directory when creating a new staging model
* Add your `/models/marts/finance/` directory when working on finance models
* Add your entire `/models/` directory when generating documentation
* Add your sources directory when updating source definitions
  {% endhint %}

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
```

***

{% hint style="info" %}

#### Best Practices

1. **Be specific** - choose the most relevant directory for your task
2. **Use subdirectories** rather than root directories when possible
3. **Combine with file context** for best results (e.g., add a directory plus a specific example file)
4. **Consider directory size** - smaller, more focused directories often provide better context
   {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.paradime.io/app-help/documentation/dino-ai/context/directory-context.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
