AutomationMart
Home/Browse/Build a PDF Document RAG System with Mistral OCR, Qdrant and Gemini AI
n8n

Build a PDF Document RAG System with Mistral OCR, Qdrant and Gemini AI

n8nn8n29 modulesv1.0
OpenAIGoogle DriveLinkedInGemini

This workflow is designed to process PDF documents using Mistral's OCR capabilities, store the extracted text in a Qdrant vector database, and enable Retrieval-Augmented Generation (RAG) for answering questions. Here’s how it functions: Once configured, the workflow automates document ingestion, vectorization, and intelligent querying, enabling powerful RAG applications. --- Benefits End-to-End Automation No manual interaction is needed: documents are read, proc

At a glance

Build a PDF Document RAG System with Mistral OCR, Qdrant and Gemini AI is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects OpenAI, Google Drive, LinkedIn, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
OpenAI, Google Drive, LinkedIn, Gemini
Modules
29
Price
Free
Version
v1.0
Build a PDF Document RAG System with Mistral OCR, Qdrant and Gemini AI workflow diagram

About this workflow

This workflow is designed to process PDF documents using Mistral's OCR capabilities, store the extracted text in a Qdrant vector database, and enable Retrieval-Augmented Generation (RAG) for answering questions. Here’s how it functions: Once configured, the workflow automates document ingestion, vectorization, and intelligent querying, enabling powerful RAG applications. --- Benefits End-to-End Automation No manual interaction is needed: documents are read, processed, and made queryable with minimal setup. Scalable and Modular The workflow uses subflows and batching, making it easy to scale and customize. Multi-Model Support Combines Mistral for OCR, OpenAI for embeddings, and Gemini for intelligent answering—taking advantage of the strengths of each. Real-Time Q\&A With RAG integration, users can query document content through natural language and receive accurate responses grounded in the PDF data. Light or Full Mode Users can choose to index full page content or only summarized text, optimizing for either performance or richness. --- How It Works 1. PDF Processing with Mistral OCR: - The workflow starts by uploading a PDF file to Mistral's API, which performs OCR to extract text and metadata. - The extracted content is split into manageable chunks (e.g., pages or sections) for further processing. 2. Vector Storage in Qdrant: - The extracted text is converted into embeddings using OpenAI's embedding model. - These embeddings are stored in a Qdrant vector database, enabling efficient similarity searches for RAG. 3. Question-Answering with RAG: - When a user submits a question via a chat interface, the workflow retrieves relevant text chunks from Qdrant using vector similarity. - A language model (Google Gemini) generates answers based on the retrieved context, providing accurate and context-aware responses. 4. Optional Summarization: - The workflow includes an optional summarization step using Google Gemini to condense the extracted text for faster processing or lighter RAG usage. --- Set Up Steps To deploy this workflow in n8n, follow these steps: 1. Configure Qdrant Database: - Replace QDRANTURL and COLLECTION in the "Create collection" and "Refresh collection" nodes with your Qdrant instance details. - Ensure the Qdrant collection is configured with the correct vector size (e.g., 1536 for OpenAI embeddings) and distance metric (e.g., Cosine). 2. Set Up Credentials: - Add credentials for: - Mistral Cloud API (for OCR processing). - OpenAI API (for embeddings). - Google Gemini API (for chat and summarization). - Google Drive (if sourcing PDFs from Drive). - Qdrant API (for vector storage). 3. PDF Source Configuration: - If using Google Drive, specify the folder ID in the "Search PDFs" node. - Alternatively, modify the workflow to accept PDFs from other sources (e.g., direct uploads or external APIs). 4. Customize Text Processing: - Adjust chunk size and overlap in the "Token Splitter" node to optimize for your document type. - Choose between raw text or summarized content for RAG by toggling between the "Set page" and "Summarization Chain" nodes. 5. Test the RAG: - Trigger the workflow manually or via a chat message to verify OCR, embedding, and Qdrant storage. - Use the "Question and Answer Chain" node to test query responses. 6. Optional Sub-Workflows: - The workflow supports execution as a sub-workflow for batch processing (e.g., handling multiple PDFs). ---- Need help customizing? Contact me for consulting and support or add me on Linkedin.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Create Instagram posts from Google Sheets data using ChatGPT Assistant and image generation

Automatically generate engaging Instagram posts from Google Sheets data using ChatGPT's Assistant for text and image creation, then publish via Instagram Business.

Free

Smart Gmail auto-labeler with Gemini AI & sender history

n8n Gmail AI Auto-Labeler > An intelligent n8n workflow that automatically classifies and labels Gmail emails using Google Gemini AI, keeping your inbox organized with zero manual effort. This workflow uses AI-powered classification to analyze email content, learn from sender patterns, and automatically apply appropriate labels while archiving processed emails. --- How It Works 1. Trigger: The workflow runs automatically every minute to check for new unread emails (or manually for bulk proces

Free

Scrape event data from 10times with Bright Data MCP, AI & Google Sheets

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. This workflow automatically discovers and collects information about events and attendee data from event platforms. It saves you time by eliminating the need to manually browse through event listings and provides a centralized database of event information including categories, venues, and attendee feedback. Overview This workflow automatically scrapes event data from 10times.com and othe

Free

Conduct SWOT analysis on competitors with ChatGPT and store results on a Google Sheet - Quick version

Add competitor websites to a Google Sheet and rapidly perform competitor SWOT analysis using ChatGPT and instantly save insightful data on the same sheet for easy access and improved decision-making. Your sheet must have the following columns: A - Company website B - Strengths C - Weaknesses D - Opportunities E - Threats

Free

Save contracts from Signi to new Google Drive folder

Every time a document in a Signi meets special criteria, Make will automatically save this file to a new Google Drive folder with the date this scenario was run.

Free

Loading JSON via FTP to Qdrant vector database embedding pipeline

This workflow is designed for one purpose only, to bulk-upload structured JSON articles from an FTP server into a Qdrant vector database for use in LLM-powered semantic search, RAG systems, or AI assistants. The JSON files are pre-cleaned and contain metadata and rich text chunks, ready for vectorization. This workflow handles - Downloading from FTP - Parsing & splitting - Embedding with OpenAI-embedding - Storing in Qdrant for future querying JSON structure format for blog articles 🧰 Benefits ✅

Free

AI agent for Instagram DM/inbox. Manychat + Open AI integration

Automate Instagram DMs with OpenAI GPT and ManyChat How It Works: Once connected, GPT will automatically initiate conversations with messages from new recipients in Intagram. Who Is This For? This workflow is ideal for - marketers, - business owners - content creators who want to automatically respond to Instagram direct messages using OpenAI GPT. By integrating ManyChat, you can manage conversations, nurture leads, and provide instant replies at scale. What This Workflow Does - Captures incom

Free

Grok Imagine Video Chatbot 🤖📺: Generate & Modify Videos via Natural Language

The Video Grok Agent is an AI-powered video generation and editing workflow that uses Grok 4.1 Fast (via OpenRouter) and Grok Imagine Video to create and modify videos through natural language. This workflow enables seamless AI-driven video creation and editing through a conversational interface, with built-in validation, async processing, and secure credential management. --- Key Advantages 1. ✅ Unified Video Creation Pipeline A single workflow supports text-to-vide

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free