RAG on live data
Workflow Description
Advanced retrieval system that ingests live data from Supabase and Notion, intelligently chunks and embeds content using OpenAI, stores vectors for semantic search, and answers user queries with language models. Processes data in batches, maintains vector store, and retrieves contextually relevant responses in real time.
How it works
- 1.Load live data from Supabase and Notion sources automatically
- 2.Split documents into semantic chunks based on token counting
- 3.Process chunks in batches and generate vector embeddings via OpenAI
- 4.Store embeddings in vector database for fast retrieval
- 5.Execute QA retrieval chain powered by OpenAI language models
- 6.Return contextual answers to user queries through chat interface
Use cases
- Intelligent search across enterprise documents and constantly-updating databases
- Build question-answering engine that understands context from multiple data sources
- Automate information extraction and summarization from live data sources
Requirements
- OpenAI API keys for embeddings and language models
- Configured Supabase connection for data access
- Notion or Supabase as primary data source
- Vector storage capability in Supabase database
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (34)
Embeddings OpenAI
OpenAI
Token Splitter
Text Splitter Token Splitter
Loop Over Items
Split In Batches
Question and Answer Chain
Chain Retrieval Qa
Vector Store Retriever
Retriever Vector Store
OpenAI Chat Model
OpenAI
When chat message received
Chat Trigger
Schedule Trigger
Schedule Trigger
Sticky Note
Sticky Note
Limit
Limit
Limit1
Limit
Delete old embeddings if exist
Supabase
Get page blocks
Notion
Default Data Loader
Document Default Data Loader
Sticky Note1
Sticky Note
Input Reference
No Op
Notion Trigger
Notion
Get updated pages
Notion
Sticky Note23
Sticky Note
Sticky Note24
Sticky Note
Sticky Note25
Sticky Note
Sticky Note26
Sticky Note
Sticky Note27
Sticky Note
Sticky Note28
Sticky Note
Supabase Vector Store1
Vector Store Supabase
Sticky Note30
Sticky Note
Sticky Note31
Sticky Note
Supabase Vector Store
Vector Store Supabase
Sticky Note32
Sticky Note
Sticky Note29
Sticky Note
Sticky Note33
Sticky Note
Sticky Note34
Sticky Note
Sticky Note35
Sticky Note
Concatenate to single string
Summarize