Help: Read PDF file into an Chatbot or Agent #29878
Replies: 1 comment 2 replies
-
|
Hi @rmaddelein-hash! I'm Dosu and I’m helping the dify team. Reading PDF files into a chatbot or agent is supported in Dify v1.11.1. The platform uses a built-in PDF extractor to pull text from PDF files—this works for workflows, knowledge bases, and agents, and is not restricted by your model choice (Mistral large or GPT-4.1 are both fine) as long as the downstream workflow supports it. There is no need for a separate extension for basic text extraction from PDFs, and there is no bug preventing this feature for your models [source]. However, only text is extracted from PDFs. If your PDF contains images or scanned pages (not selectable text), Dify will not process or extract that content—no OCR or image extraction is performed. For image-based PDFs, you’ll need to use an external OCR tool to convert images to text before uploading to Dify [source]. To set this up, use the Document Extractor node in your workflow or agent pipeline. Upload your PDF, and Dify will extract the text for further processing by your LLM. If you need to handle large documents, consider chunking the extracted text before sending it to the model [source]. If you’re seeing an error like “extension not allowed,” double-check that the file input variable is configured to accept PDFs and that you’re not hitting a frontend validation issue. The backend supports PDF ingestion natively. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
Hello,
I wish read a PDF file into an chatbot or agent, but this extension is not allowed.
Dify version: 1.11.1 (self-hosted)
Model (vision): Mistral large/GPT-4.1
Thank you
2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions