Create a robust Retrieval-Augmented Generation (RAG) system using an n8n workflow. Integrate Mistral OCR for PDF extraction, Qdrant vector storage, and Gemini AI for conversational Q&A.
Download this n8n workflow template and start using it instantly.



















This comprehensive n8n workflow provides a complete solution for building an interactive knowledge base from unstructured PDF documents. It handles the entire lifecycle: from fetching files via the Google Drive n8n node, using the powerful Mistral OCR API for accurate text extraction (including markdown formatting for structured data), chunking the text, generating embeddings via OpenAI, and indexing them into a Qdrant vector store. The final piece is a conversational query system powered by a specialized n8n trigger and Google Gemini, allowing users to ask questions against their vectorized data, making this one of the most powerful n8n templates available for RAG.
QDRANTURL, COLLECTION) in the 'Create collection' and 'Refresh collection' HTTP Request n8n node configurations. Ensure the Google Drive n8n node ('Search PDFs') points to the correct folder ID containing your source documents. When clicking ‘Test workflow’ (n8n trigger): Manually initiates the entire ingestion and indexing process.
Google Drive (Search PDFs & Get PDF): Used to locate and download the source PDF documents, providing the file binary data necessary for the next step in the n8n workflow.
HTTP Request (Mistral Upload, Signed URL, DOC OCR): A set of custom n8n node requests handling the high-fidelity PDF text extraction via the Mistral OCR service.
Code: Custom n8n node scripting used to map the multi-page output from Mistral OCR into individual items, enabling the subsequent batch processing loops.
Token Splitter (LangChain n8n node): Crucial for RAG efficiency, this node chunks the extracted text to create optimally sized context windows for vector generation.
Embeddings OpenAI (LangChain n8n node): Generates the 1536-dimensional vector embeddings for text chunks, which are required for similarity search in Qdrant.
Qdrant Vector Store (LangChain n8n node): This n8n node handles both the insertion of new vectors into the ocrmistraltest collection during indexing and acts as the retrieval layer during query time.
When chat message received (n8n trigger): The interactive entry point, waiting for a chat input to begin the RAG process.
Google Gemini Chat Model (LangChain n8n node): Serves as the Large Language Model (LLM) component, utilizing gemini-1.5-flash to generate the final response based on the retrieved context.
Question and Answer Chain (LangChain n8n node): Orchestrates the final RAG logic, seamlessly integrating the Qdrant retriever output and the Gemini LLM to deliver the conversational result in this advanced n8n workflow.
Build a powerful multichannel customer support AI assistant using this n8n workflow. Integrates Chatwoot webhooks with OpenRouter/LLMs to automatically respond to user queries using a defined knowledge base.

Implement a powerful AI Telegram bot using this n8n workflow. Features include Gemini chat, voice transcription, RAG knowledge base search (Qdrant), and Google Suite automation.

Use this powerful n8n workflow template to automate multi-site web scraping. Fetch URLs from Google Sheets, route requests based on source, apply rate limiting, and use custom n8n node logic for content extraction and freshness filtering.

Create a fully automated n8n workflow to parse PDFs from Google Drive, normalize content, generate OpenAI embeddings, and store them in Pinecone for Retrieval-Augmented Generation (RAG) QA systems.

Deploy a robust RAG system using n8n to ingest PDFs via Mistral OCR, embed them with Cohere, store in Weaviate, and enable search via an n8n workflow MCP Server trigger.

Implement a powerful Retrieval Augmented Generation (RAG) system using this advanced n8n workflow. Ingest PDFs into Pinecone via an n8n trigger, utilize OpenAI embeddings, and enhance answer quality with Cohere reranking for a high-performance chat agent.

Full-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at [email protected] or add me on Linkedin.com/in/davideboizza







































