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

# Corpus

> Build a personal or team paper library, organize it into collections, and ground chats in it.

The Corpus is your paper library. Upload PDFs or add articles by identifier, organize them into collections, and ask Purna questions grounded in exactly those papers.

Open **Library → Corpus**.

## Choose a library

Use the library selector to switch between your personal library and your teams' libraries. You can add and edit papers in a team library unless your team role is viewer.

Use the collection picker to show **All Collections** or a single collection.

## Add papers

Select **Add** → **Add Article**. The **Add to Library** dialog has two tabs.

### Upload PDFs

On **Upload files or folders**, drop PDFs onto the drop zone or browse for **Files** or **Folders**.

* PDF only, up to 50 MB each, 100 files at a time.
* When you upload a folder, Purna keeps only the PDF files.

When you upload a folder, choose a **Destination**: **Create a new collection**, an existing collection, or the **Current collection**. PDFs from subfolders go into the same collection, and papers already in your Library are reused rather than duplicated.

Each file shows its progress from Queued to Uploading to saved, then its processing status. Select **Retry** on any file that fails. Keep the dialog open until uploads finish, then select **Done**.

### Find an article

On **Find an article**, enter a DOI, PMID, PMCID, bioRxiv, medRxiv, or arXiv ID, or an article URL, then select **Find Article**.

You can also fill in the details by hand. **Title** is required; the other fields are **Authors** (separated by semicolons), **Year**, **Journal**, **Source**, **Publication type**, **DOI**, **PMID**, **URL**, **Open Access**, and **Abstract**. Select **Add Article** to save it.

## Processing and index status

Purna reads and indexes each PDF so it can cite exact passages. The **Index status** column shows where each paper is:

| Status | Meaning |
| - | - |
| **Processing** | Purna is reading the PDF |
| **Indexed** | The full text is searchable |
| **Partially indexed** | Only part of the text could be indexed |
| **Not indexed** or **PDF unavailable** | Only the article details are available |
| **Processing failed** or **Invalid PDF** | The PDF could not be read |

Select **Retry processing** for a failed paper, or **Refresh status** to check again. If a PDF exceeds the page limit, upload a smaller file.

## Organize papers

The table shows **Title**, **Authors**, **Year**, **Journal**, **Open Access**, **Reading status**, **Personal notes**, **Index status**, and more. Use the column menu to show or hide columns.

* Set **Reading status** to Unread, Reading, or Read, and add **Personal notes** to any paper.
* Select papers to **Add to Collection**, **Remove from collection**, or **Delete selected**.
* Create a collection from the collection picker. Rename it with the **…** button.

Select a paper to open its details. On **Details**, select **Fill missing details from PDF** to complete the record, then **Save details**. On **Collections & files**, view the PDF, remove the paper from a collection, or **Delete paper**.

## Use the Corpus in a chat

1. In the composer, select **+** → **Add from Corpus**.
2. Pick a library and, optionally, a collection. Search for articles or collections.
3. Select up to 10 articles or collections, then select **Add Sources**.

Purna answers from the selected papers and cites the passages it used. Select a citation to open the evidence passage in the paper.

> [!NOTE]
>
> Corpus sources work only in private chats. Set a chat's sharing to **Private** before you add Corpus sources.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.