workflows.fit
Back to n8n workflows
n8n templateFreeBy Abdullahi Osman

Build a document QA system with Google Drive, Pinecone, and OpenAI RAG

Title RAG AI Agent for Documents in Google Drive → Pinecone → OpenAI Chat (n8n workflow) --- Short Description This n8n workflow implements a Retrieval-Augmented Generation (RAG) pipeline + AI agent, allowing users to...

Data & StorageAILangchainCore NodesGoogle Drive TriggerGoogle DriveVector Store PineconeEmbeddings Open Ai
Loading interactive preview...

Template notes

Title

RAG AI Agent for Documents in Google Drive → Pinecone → OpenAI Chat (n8n workflow)

---

Short Description

This n8n workflow implements a Retrieval-Augmented Generation (RAG) pipeline + AI agent, allowing users to drop documents into a Google Drive folder and then ask questions about them via a chatbot. New files are indexed automatically to a Pinecone vector store using OpenAI embeddings; the AI agent loads relevant chunks at query time and answers using context plus memory.

---

Why this workflow matters / what problem it solves

Large language models (LLMs) are powerful, but they lack up-to-date, domain-specific knowledge. RAG augments the LLM with relevant external documents, reducing hallucination and enabling precise answers. ([Pinecone][1]) This workflow automates the ingestion, embedding, storage, retrieval, and chat logic — with minimal manual work. It’s modular: you can swap data sources, vector DBs, or LLMs (with some adjustments). It leverages the built-in AI Agent node in n8n to tie all the parts together. ([n8n][2])