> ## Documentation Index
> Fetch the complete documentation index at: https://haider-5d8ca6e7.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat with Documents

> Upload and interact with PDFs, Excel, PowerPoint, and more

## Overview

Chat with Documents lets you upload document files and have AI-powered conversations about their content. Ask questions, get summaries, and extract key insights.

***

## Supported Formats

| Format         | Extensions              | Description                 |
| -------------- | ----------------------- | --------------------------- |
| **PDF**        | `.pdf`                  | Standard PDF documents      |
| **Excel**      | `.xlsx`, `.xls`, `.csv` | Spreadsheets and data files |
| **PowerPoint** | `.pptx`, `.ppt`         | Presentation slides         |
| **Text**       | `.txt`, `.rtf`          | Plain text files            |
| **EPUB**       | `.epub`                 | E-books                     |

***

## How to Use (Web App)

<Steps>
  <Step title="Select Tool">
    Go to your Skimming AI dashboard and select **Chat with Documents**.
  </Step>

  <Step title="Upload File">
    Drag and drop your document or click to browse. Supported: PDF, XLSX, PPTX, TXT, EPUB.
  </Step>

  <Step title="Get Summary">
    Skimming AI automatically generates a summary of your document.
  </Step>

  <Step title="Ask Questions">
    Type any question about the document content and get AI-powered answers.
  </Step>
</Steps>

***

## How to Use (API)

### Step 1: Ingest the Document

```bash theme={null}
curl -X POST https://app.skimming.ai/back/source/v1/api/document \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "source=@report.pdf"
```

### Step 2: Chat with the Document

```bash theme={null}
curl -X POST https://app.skimming.ai/back/chat/v1/api/document/pdf \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "file_id": "YOUR_FILE_ID",
    "question": "What are the main conclusions?",
    "streaming": false
  }'
```

***

## Chat Endpoints by Type

| Document Type | Endpoint                     |
| ------------- | ---------------------------- |
| PDF           | `/chat/v1/api/document/pdf`  |
| Excel/CSV     | `/chat/v1/api/document/xlsx` |
| PowerPoint    | `/chat/v1/api/document/pptx` |
| Text          | `/chat/v1/api/document/txt`  |
| EPUB          | `/chat/v1/api/document/epub` |

***

## Limits

| Plan | Documents     | File Size    |
| ---- | ------------- | ------------ |
| Free | Up to 200     | 5 MB         |
| Paid | Based on plan | Up to 200 MB |

***

## Use Cases

<CardGroup cols={2}>
  <Card title="Research" icon="flask">
    Quickly extract insights from academic papers and reports.
  </Card>

  <Card title="Legal" icon="scale-balanced">
    Analyze contracts, agreements, and legal documents.
  </Card>

  <Card title="Business" icon="briefcase">
    Summarize business reports, financials, and presentations.
  </Card>

  <Card title="Education" icon="graduation-cap">
    Study textbooks and lecture notes more efficiently.
  </Card>
</CardGroup>
