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

# File Attachments

> How to attach files in chat for AI to process

## File Attachment Feature

When you attach files to the chat, AI can analyze and process the file contents.

## How to Attach Files

### Attach via Button

<Steps>
  <Step title="Click the Attachment Button">
    Click the clip icon (attachment button) in the input area.
  </Step>

  <Step title="Select a File">
    Select the file you want to attach from the file selection dialog.
  </Step>

  <Step title="Confirm the File">
    The attached file will be displayed in the input area.
  </Step>

  <Step title="Enter Message and Send">
    Enter a message if needed and send.
  </Step>
</Steps>

### Attach via Drag & Drop

You can also attach files by dragging and dropping them onto the chat screen.

## Supported File Formats

The following file formats are supported:

| Category  | File Formats                                                      |
| --------- | ----------------------------------------------------------------- |
| Documents | PDF, Word (.docx), Excel (.xlsx), PowerPoint (.pptx), Text (.txt) |
| Images    | PNG, JPEG, GIF, WebP                                              |
| Data      | CSV, JSON                                                         |

<Warning>
  An error message will be displayed if you try to attach an unsupported file format.
</Warning>

## File Size Limits

There is a maximum file size limit for attachments. Files exceeding the limit cannot be attached.

<Note>
  For large files, consider splitting them or extracting only the necessary parts before attaching.
</Note>

## Examples of File-based Questions

### Excel File Analysis

```
Please aggregate the sales data in the attached Excel file by month and create a graph.
```

### PDF Summary

```
Please summarize the contents of the attached PDF in three key points.
```

### Image Description

```
Please describe what is shown in this image.
```

### CSV Data Processing

```
Please extract rows with sales over 1 million yen from the attached CSV.
```

## Removing Attached Files

If you want to remove an attachment before sending, click the "×" button on the attachment preview.

## Troubleshooting

<AccordionGroup>
  <Accordion title="Cannot attach file">
    Please check the following:

    * Is the file format supported?
    * Does the file size exceed the limit?
    * Is the file corrupted?
  </Accordion>

  <Accordion title="File contents cannot be read correctly">
    * Password-protected files cannot be read
    * Scanned PDFs may be recognized as images
  </Accordion>
</AccordionGroup>
