# Will RAG Support PDF Files in the Future?

**URL:** https://meta.discourse.org/t/will-rag-support-pdf-files-in-the-future/335804
**Category:** Feature
**Tags:** completed, ai, ai-bot
**Created:** [September 30, 2024, 5:35pm UTC](https://meta.discourse.org/t/will-rag-support-pdf-files-in-the-future/335804 "2024-09-30T17:35:55Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 16, 2025, 10:30pm UTC](https://meta.discourse.org/t/will-rag-support-pdf-files-in-the-future/335804/21 "2025-02-16T22:30:51Z")

</div>

2 posts were split to a new topic: [Rake tasks in the AI plugin not working](https://meta.discourse.org/t/rake-tasks-in-the-ai-plugin-not-working/352607)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 18, 2025, 4:36am UTC](https://meta.discourse.org/t/will-rag-support-pdf-files-in-the-future/335804/22 "2025-02-18T04:36:48Z")

</div>

This is now supported and basic documentation is up at:

> [@PDF support in Discourse AI (RAG)](https://meta.discourse.org/t/pdf-support-in-discourse-ai/352829):
>
> bookmark This guide explains how to implement and use PDF processing capabilities within discourse-ai, including both basic text extraction and enhanced processing with LLM assistance. person_raising_hand Required user level: Administrator Summary The discourse-ai plugin supports PDF processing for RAG (Retrieval-Augmented Generation) in two distinct modes: Basic text extraction Enhanced processing with LLM analysis Basic text extraction This mode provides fundamental PDF processing c…

Note, enhanced processing will require container changes at the moment as @featheredtoast / @tgxworld were in the midst of refactoring image magick support and we dropped ghostscript support by mistake.

This can be configured by hand but would is beyond the scope of what I can post here, it is fiddly steps, so those waiting of enhanced processing, give us a few weeks.

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [March 11, 2025, 4:39pm UTC](https://meta.discourse.org/t/will-rag-support-pdf-files-in-the-future/335804/24 "2025-03-11T16:39:55Z")

</div>

> [@Saif](#):
>
> One of the challenges with the work behind this is supporting PDFs of all types. As you can imagine some PDFs are straight text and easy to parse. However, there are some with custom fonts, images, graphics, non-linearly formatted etc

Very valid points. Also some pdfs while have text in them. They are lazy scans as a graphic file vs a ctual text.

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [May 25, 2025, 12:50pm UTC](https://meta.discourse.org/t/will-rag-support-pdf-files-in-the-future/335804/25 "2025-05-25T12:50:29Z")

</div>



[Previous page](https://meta.discourse.org/t/will-rag-support-pdf-files-in-the-future/335804.md?page=1)
