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

# PDFs

> Paste a PDF url or drag and drop up hundreds of files up to 100MB in size on Libraria

## How do I add a PDF to my knowledge base?

1. Go to the **Knowledge Base** of the Library you want to add a PDF to.

2. Click `Add Knowledge` button.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/pdfs/add-docs-2.png" alt="Add Knowledge" />
</Frame>

3. Select **Add a file** from the Add Knowledge window.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/pdfs/add-pdf-1.png" alt="Add a file" />
</Frame>

The page will be changed to enable you to upload a PDF file.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/pdfs/add-pdf-2.png" alt="Add a PDF" />
</Frame>

There are 2 ways to add a PDF to your knowledge base on Libraria

### Drag and Drop

1. You can upload files by clicking on the **Drag and drop** area and selecting the files from your computer.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/pdfs/drag-drop-1.png" alt="Click drag and drop" />
</Frame>

Or simply dragging the files from your computer to the **Drag and drop** area.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/pdfs/drag-drop-2.png" alt="Drag then drop" />
</Frame>

2. Click the `Submit` button to add the PDF to your knowledge base. The number of credits used will be displayed on the button.

### PDF Link

1. Click on the `By URL` button to show the text field where you can paste the URL.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/pdfs/url-1.png" alt="Click By URL" />
</Frame>

2. Paste the link to the PDF in the text field.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/pdfs/url-2.png" alt="Paste the link" />
</Frame>

3. Press the `Submit` button. A window will appear showing how much number of credits will be used when the PDF is added to the knowledge base.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/pdfs/url-3.png" alt="Submit the link" />
</Frame>

4. Confirm that you want to add the PDF to your knowledge base by clicking the `Submit` button in the window. When the upload is successful the window will show *Submitted*.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/pdfs/url-4.png" alt="Confirm the upload" />
</Frame>

You can check the uploaded document by going to the **Knowledge Base** page. The document will be listed in the **All Documents** tab.
