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
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
π€ Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
Smart Sales Support Chatbot with GPT-4o and Google Sheets
Who is this tempate for? This workflow powers a simple yet effective customer and sales support chatbot for your webshop...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments