Answer Questions from Documents with RAG using Supabase, OpenAI & Cohere Reranker
This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
This comprehensive RAG workflow enables your AI agents to answer user questions with contextual knowledge pulled from your own documents β using metadata-rich embeddings stored in Supabase.
π§ Key Features: RAG Agents powered by GPT-4.5 or GPT-3.5 via OpenRouter or OpenAI.
Supabase Vector Store to store and retrieve document embeddings.
Cohere Reranker to improve response relevance and quality.
Metadata Agent to enrich vectorized data before ingestion.
PDF Extraction Flow to automatically parse and upload documents with metadata.
β Setup Steps: Connect your Supabase Vector Store.
Use OpenAI Embeddings (e.g. text-embedding-3-small).
Add API keys for OpenAI and/or OpenRouter.
Connect a reranker like Cohere.
Process documents with metadata before embedding.
Start chatting β your AI agent now returns context-rich answers from your own knowledge base!
Perfect for building AI assistants that can reason, search and answer based on internal company data, academic papers, support docs, or personal notes.
Related Templates
AI SEO Readability Audit: Check Website Friendliness for LLMs
Who is this for? This workflow is designed for SEO specialists, content creators, marketers, and website developers who ...
Reply to Outlook Emails with OpenAI
Who is this template for? This template is for any Microsoft Outlook user who wants a trained AI agent to reason and rep...
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments