Workflow updated on 17/06/2024:
Added 'Summarize' node to avoid creating a row for each Notion content block in the Supabase table.
This workflow assumes you have a Supabase project with a table that has a vector column. If you don't have it, follow the instructions here: Supabase Langchain Guide
This workflow automates the process of storing Notion pages as vector documents in a Supabase database with a vector column. The steps are as follows:
Notion Page Added Trigger:
Page Added in Notion Database
Retrieve Page Content:
Get Blocks Content
Filter Non-Text Content:
Filter - Exclude Media Content
Summarize Content:
Summarize - Concatenate Notion's blocks content
Store in Supabase:
Store Documents in Supabase
Generate Embeddings:
Generate Text Embeddings
Create Metadata and Load Content:
Load Block Content & Create Metadata
Split Content into Chunks:
Token Splitter
Implement complex processes faster with n8n