RAG Document QA System: Milvus, Cohere, OpenAI for Google Drive

Monitors Google Drive for new PDFs, extracts text, embeds with Cohere into Milvus, and enables RAG QA agent with OpenAI for intelligent queries.

n8n
RAG Document QA System: Milvus, Cohere, OpenAI for Google Drive

This n8n workflow builds a Retrieval Augmented Generation (RAG) system that automatically processes new PDF files from a Google Drive folder. It triggers on new files, downloads them, extracts text content, chunks the data, generates embeddings using Cohere, and stores them in a Milvus vector database. This setup powers a conversational AI agent capable of answering queries by retrieving relevant document chunks and generating responses with OpenAI (ChatGPT 4o).

Key benefits include seamless automation of document ingestion for knowledge bases, cost-effective RAG with memory management for chat history, and scalability for large document sets. Ideal for teams needing instant QA over proprietary docs without manual indexing.

Use cases span enterprise search, customer support bots, legal research, or research assistants in health & fitness (e.g., querying nutrition PDFs). Adapt the chat trigger for webhooks, Slack, or apps. Requires API keys for Google Drive, Cohere, Milvus, and OpenAI.

$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 Health & Fitness workflows

More from Matt Buds

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.