> For the complete documentation index, see [llms.txt](https://docs.datasaur.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datasaur.ai/llm-projects/sandbox/file-attachment.md).

# File attachment

## Overview

File attachments lets you upload files or URLs as part of your prompt inputs when interacting with the model. This feature enhances the prompting experience by providing additional context, data, or reference materials that the model can use to generate more accurate and relevant responses.

{% hint style="info" %}
File attachments provide additional context or reference materials. Unlike the knowledge base or Retrieval-Augmented Generation (RAG), which send only relevant portions, all attached files are sent to the model for a more comprehensive input.
{% endhint %}

## Get started

{% hint style="info" %}
Our file attachment feature supports `.png`, `.jpg`, `.jpeg`, `.webp`, `.gif`, `.pdf`, `.csv`, and `.txt` formats. You can upload up to **5 files per prompt**, with a maximum size of **50 MB** each.
{% endhint %}

1. Open your Sandbox and click the attach button on a prompt. You can attach files or URLs.

   <figure><img src="/files/3nDRLpUlhYYnxiCeM8eY" alt=""><figcaption></figcaption></figure>
2. After attaching a file, enter an additional prompt or leave it blank. Then, click **Run selected**.

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

{% hint style="info" %}
Please note that the attached files and URLs will be visible to all workspace members and will remain accessible until deleted.
{% endhint %}

## View or delete attachments

1. To delete an attachment, hover over the item and click the `X` button.

   <figure><img src="/files/ojP56pgneCWcYL84hGEc" alt=""><figcaption></figcaption></figure>
2. To view an attachment, click the item.

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