> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate documentation

> Use DinoAI to auto-generate model and column descriptions with tests across an entire folder, turning days of documentation work into minutes.

DinoAI can document an entire folder of models at once, complete with column descriptions and appropriate tests. In this guide you generate `schema.yml` documentation for a directory of models.

<Note>
  **Prerequisites**

  * DinoAI copilot access in your Paradime workspace.
  * A dbt™ project with models to document.

  Estimated time: 5 minutes.
</Note>

## Steps

<Steps>
  <Step title="Add a directory as context">
    In DinoAI, click the "@" symbol and add the folder of models you want to document as context.

    <Info>
      Directory context is especially powerful for documentation tasks, since it lets DinoAI document many models in a single pass.
    </Info>
  </Step>

  <Step title="Enter your prompt">
    Ask DinoAI to document the models. For example:

    > I have a bunch of new files in my Marts folder. Can you document these for me?

    DinoAI scans all models in the directory, analyzes each model's structure, column names, and relationships, and generates `schema.yml` files with model descriptions, column descriptions, and tests. If configured, it follows your [.dinorules](/guides/dinoai-copilot-use-cases/using-your-project-as-context-to-set-up-.dinorules) documentation standards.
  </Step>

  <Step title="Review the generated documentation">
    Review the output before accepting it. Each model gets a description, and each column gets a description with tests where appropriate.

    <Accordion title=".yml file example">
      ```yaml theme={"system"}
      version: 2

      models:
        - name: int_f1_race_results_by_constructor
          description: "This model combines race results with constructor information to analyze performance by constructor across different races and seasons."
          columns:
            - name: race_id
              description: "Unique identifier for each race event"
              tests:
                - not_null

            - name: year
              description: "The year in which the race took place"
              tests:
                - not_null

            - name: race_name
              description: "The official name of the race event"

            # Additional columns with descriptions and tests...
      ```
    </Accordion>
  </Step>

  <Step title="Accept the changes">
    Accept the changes to write the `schema.yml` files into your project.
  </Step>
</Steps>

<Check>
  Each model in the folder now has a description, column descriptions, and tests in its `schema.yml` file. If any model was skipped, confirm it was included in the directory context and re-run the prompt.
</Check>

## Next steps

<CardGroup cols={2}>
  <Card title="Configure data pipelines" href="/guides/dinoai-copilot-use-cases/configuring-data-pipelines" icon="workflow">
    Set materializations, schemas, and tags for your models.
  </Card>

  <Card title="Build marts models" href="/guides/dinoai-copilot-use-cases/building-marts-models" icon="table">
    Combine multiple models with business logic.
  </Card>

  <Card title="DinoAI use cases" href="/guides/dinoai-copilot-use-cases/index" icon="sparkles">
    Explore more ways to work with DinoAI.
  </Card>

  <Card title="Copilot reference" href="/products/dino-ai/copilot/index" icon="bot">
    How context and Agent Mode work.
  </Card>
</CardGroup>


## Related topics

- [Commands](/guides/dbt-fundamentals/running-dbt/mastering-the-dbt-cli/commands.md)
- [Auto-Generate Documentation](/products/dino-ai/copilot/auto-generate-documentation.md)
- [Generate dbt™ models](/guides/dinoai-copilot-use-cases/generating-dbt-tm-models.md)
- [DinoAI in the Code IDE](/products/code-ide/write-code/dinoai.md)
- [Create sources from your warehouse](/guides/dinoai-copilot-use-cases/creating-sources-from-your-warehouse.md)
