πŸ“– Smarter RAG agents with enriched retrieval and modular workflows

⚑ 2,436 views Β· πŸ“– Internal Wiki & Knowledge Base

Description

An extendable RAG template to build powerful, explainable AI assistants β€” with query understanding, semantic metadata, and support for free-tier tools like Gemini, Gemma and Supabase.

Description

This workflow helps you build smart, production-ready RAG agents that go far beyond basic document Q&A.

It includes:

βœ… File ingestion and chunking

βœ… Asynchronous LLM-powered enrichment

βœ… Filterable metadata-based search

βœ… Gemma-based query understanding and generation

βœ… Cohere re-ranking

βœ… Memory persistence via Postgres

Everything is modular, low-cost, and designed to run even with free-tier LLMs and vector databases.

Whether you want to build a chatbot, internal knowledge assistant, documentation search engine, or a filtered content explorer β€” this is your foundation.

βš™οΈ How It Works

This workflow is divided into 3 pipelines:

πŸ“₯ Ingestion

🧠 Enrichment (Async)

πŸ€– Agent Chat

🌟 Key Features

πŸ” Required Credentials

|Tool|Use| |-|-|-| |Supabase w/ PostreSQL|Vector DB + storage| |Google Gemini/Gemma|Embeddings & LLM| |Cohere API|Re-ranking| |PostgreSQL|Chat memory|

🧰 Customization Tips

πŸ’‘ Use Cases

🧠 Who It’s For

πŸš€ Try It Out!

Deploy a modular RAG assistant using n8n, Supabase, and Gemini β€” fully customizable and almost free to run.

1. πŸ“ Prepare Your PDFs

2. 🧩 Set Up Supabase

> πŸ’‘ Pro Tip: Make sure you match the embedding dimensions to your model. This workflow uses Gemini text-embedding-04 (768-dim) β€” if switching to OpenAI, change your table vector size to 1536.

3. 🧠 Connect Gemini & Gemma

4. βš™οΈ Import the Workflow in n8n

You’re ready to ingest, enrich, and query your document base.

πŸ’¬ Have Feedback or Ideas? I’d Love to Hear

This project is open, modular, and evolving β€” just like great workflows should be :).

If you’ve tried it, built on top of it, or have suggestions for improvement, I’d genuinely love to hear from you. Let’s share ideas, collaborate, or just connect as part of the n8n builder community.

πŸ“§ ascuncia.es@gmail.com

πŸ”— Linkedin

πŸ”— Nodes Used

Supabase, Schedule Trigger, AI Agent, Recursive Character Text Splitter, n8n Form Trigger, Supabase Vector Store

πŸ“₯ Import

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

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