N8N AI Document Loader Error

Im having an issue with n8n AI trying to do document uploads to a vector store using the Binary Input Loader.

When I try to run this flow I get an error on the Loader: “ERROR: Failed to load pdf-parse. Please install it with eg. npm install pdf-parse.”

How do I fix?

Hey @Nikto655,

Can you share a workflow example for this?

I have a PDF file coming in from the dropbox node. Below example has the wrong filetype in the loader node, but im using the PDF file type when it fails.

I am having the same issue not also for PDF files but Docx files. When I try to load docx it throws error for mammoth library

Looks like important dependencies got removed. I added them back and built a new image. It should be ready in 10 minutes.

1 Like

Thanjs @jan Will this update docker file for aibeta? Docker

Yes it is ai-beta

1 Like

Works great now! Thanks!

Glad to hear! Have fun!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.