Inserting multiple files into a Pinecone DB (for RAG)

Hi … So, I’ve look at inserting a PDF file into Pinecone in order to chat with it. There’s a workflow in the template section here.

However, I want to insert multiple (up to 50) PDFs into Pinecone …

Should I create a loop or something with the function node? Or maybe there’s an easier way?

What would be the best way to approach this?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @lexgabrees, thanks for posting! You can insert multiple files by simply downloading multiple files in the Google Drive node before Pinecone in the linked template (n8n should iterate through all the files automatically without you having to add a code node). Here’s a slightly altered version of the same template:

2 Likes

Hey … Yes … I was able to do this already … The problem now is inserting multiple PDFs into pinecone, which results in an internal error. I didn’t have time to test chunk size yet though.

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

What’s the internal error that you’re seeing @lexgabrees?

2 Likes