πŸ” Build multi-client agentic RAG document processing pipeline with Supabase Vector DB

⚑ 1,632 views Β· πŸ” AI RAG & Knowledge Retrieval

Description

Ultimate n8n Agentic RAG Template

Author: Cole Medin

What is this?

This template provides a complete implementation of an Agentic RAG (Retrieval Augmented Generation) system in n8n that can be extended easily for your specific use case and knowledge base. Unlike standard RAG which only performs simple lookups, this agent can reason about your knowledge base, self-improve retrieval, and dynamically switch between different tools based on the specific question.

Why Agentic RAG?

Standard RAG has significant limitations:

What makes this template powerful:

Getting Started

  1. Run the table creation nodes first to set up your database tables in Supabase
  2. Upload your documents through Google Drive (or swap out for a different file storage solution)
  3. The agent will process them automatically (chunking text, storing tabular data in Supabase)
  4. Start asking questions that leverage the agent’s multiple reasoning approaches

Customization

This template provides a solid foundation that you can extend by:


I do intend on making a local version of this agent very soon!

πŸ”— Nodes Used

Postgres, Google Drive, Google Drive Trigger, Supabase, Embeddings OpenAI, Character Text Splitter

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup