๐Ÿ“– Upsert huge documents in a vector store with Supabase and Notion

โšก 14,145 views ยท ๐Ÿ“– Internal Wiki & Knowledge Base

Description

Purpose

This workflow adds the capability to build a RAG on living data. In this case Notion is used as a Knowledge Base. Whenever a page is updated, the embeddings get upserted in a Supabase Vector Store.

It can also be fairly easily adapted to PGVector, Pinecone, or Qdrant by using a custom HTTP request for the latter two.

Demo

IMAGE ALT TEXT HERE

How it works

Prerequisites

Setup

How to use

Populate your Notion Database with useful information and use the chat mode of this workflow to ask questions about it. Updates to a Notion Page should quickly reflect in future conversations.

๐Ÿ”— Nodes Used

Notion, Notion Trigger, Supabase, Schedule Trigger, Question and Answer Chain, Embeddings OpenAI

๐Ÿ“ฅ Import

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

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup