> ## Documentation Index
> Fetch the complete documentation index at: https://cortex-foundation-add13747-droid-1a2462c9-cor-444-sanitize.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Library

> Everything you uploaded to a chat or a project, and everything the assistant produced. Files stay in Library when a chat is deleted.

Library is the file store on your account. Anything you attach in a chat, add to a project, or upload directly lands here, and so does everything the assistant generates — pictures from Cortex-Image-1 included. Open it from **Artifacts** in the sidebar.

<Frame caption="Library, filtered by type: All, Images, PDFs, Code, Other.">
  <img src="https://mintcdn.com/cortex-foundation-add13747-droid-1a2462c9-cor-444-sanitize/_zkvI1h_JpZuQFg3/images/product/chat-library.png?fit=max&auto=format&n=_zkvI1h_JpZuQFg3&q=85&s=22d290fba885d3260139d52adfbc7e42" alt="Library — Nothing in your library yet. Attach a file in a chat, add one to a project, or upload it here." width="1280" height="800" data-path="images/product/chat-library.png" />
</Frame>

## How files get in

| Route                                                     | What happens                                                        |
| --------------------------------------------------------- | ------------------------------------------------------------------- |
| **+ → Attach file** in the composer, or drop a file on it | The file is checked, stored in Library, and attached to the turn    |
| Add a file to a project                                   | The file is stored in Library and available to that project's chats |
| **Upload** in Library                                     | The file is stored for later use                                    |
| The assistant generates something                         | Generated files — images, documents — are saved here                |

Type and size checks run at upload. A rejected file is not attached and does not appear in Library.

## Use a file in Chat

Pick from Library when you start a turn, or attach a fresh file. The conversation receives the file as an attachment. Cortex does not fetch a URL you paste as if it were an attachment — paste a link and Chat will read it as text, or use web tools to fetch the page.

Deleting a chat does not delete its files; they stay in Library until you remove them there.

## Filters

**All**, **Images**, **PDFs**, **Code**, **Other**. Generated pictures show under Images.

## Failure states

A Library fetch that fails shows an **error square** in the thread — never a spinner that spins forever. Retry the turn; if the file is gone from Library, attach it again.

## Guests

Library needs a signed-in account. A guest can attach files to the current session; they are not kept once the session ends. See [Accounts](/getting-started/accounts).

## Related

* [Projects](/chat/projects) — pin files to a body of work.
* [Image generation](/chat/images) — generated pictures land here.
* [Origin check](/chat/origin-check) — check attached media.
* [Design library](/design/library) — a different object: components, pages, and tokens for canvases.
* [Settings → Data & privacy](/getting-started/settings) — export or delete everything.
