Templates / Build a PDF-based RAG system with OpenAI, Pinecone and Cohere reranking

Build a PDF-based RAG system with OpenAI, Pinecone and Cohere reranking

Ready for 3.0

by Aji Prakoso · 11,500 views · created 2025-07-07 · Internal Wiki, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 11 nodes and runs when someone submits an n8n form (“Upload RAG PDF”) (plus 1 other trigger). Along the way it connects Pinecone Vector Store, Embeddings OpenAI, OpenAI Chat Model and Reranker Cohere.

How it runs

Trigger: When someone submits an n8n form (“Upload RAG PDF”) (plus 1 other trigger).

  1. Pinecone Vector Store: stores documents in the Pinecone vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  2. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (VectorDB); memory: Simple Memory

Services it uses

Pinecone Vector StoreEmbeddings OpenAIOpenAI Chat ModelReranker Cohere

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. This workflow provides a complete, ready-to-use template for a Retrieval-Augmented Generation (RAG) system. It allows you to build a powerful AI chatbot that…

Excerpt from Aji Prakoso's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.