Build PDF Search RAG System: Mistral OCR + Weaviate DB

Transforms PDFs into searchable vector embeddings using Mistral OCR for text extraction, Weaviate for storage, Cohere for semantic search, and MCP for AI integration.

n8n
Build PDF Search RAG System: Mistral OCR + Weaviate DB

This n8n workflow creates a complete Retrieval-Augmented Generation (RAG) system for PDF documents. It starts by processing uploaded PDFs with Mistral AI's OCR to accurately extract text, even from scanned or image-based files. The extracted text is then automatically chunked into optimal sizes for vectorization, preserving context for better retrieval.

Embeddings are generated using Cohere's multilingual models and stored in a Weaviate vector database under a 'KnowledgeDocuments' collection. This enables efficient semantic similarity searches, enhanced by Cohere reranking for top precision. Document metadata like filename, source, and timestamp is included for comprehensive tracking.

The system exposes the knowledge base via an MCP (Model Context Protocol) server, allowing seamless integration as an AI tool in external workflows. Benefits include rapid deployment of enterprise-grade document search, reduced manual data entry, and scalable AI-powered querying across large PDF corpora. Ideal use cases: legal document review, research archives, customer support knowledge bases, and technical manual search.

$24.99
Last updated October 3, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related AI & Machine Learning workflows

More from Fred Garcia

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.