Templates / Reindex markdown RAG chunks with Supabase pgvector and webhooks

Reindex markdown RAG chunks with Supabase pgvector and webhooks

Ready for 3.0

by Filip Mijic ✓ · 27 views · created 2026-06-15 · Document Extraction, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 9 nodes and runs on a schedule (every day at 02:00) (plus 1 other trigger). Along the way it connects Postgres. It also calls kairesume.fit and jhccfsyytbkfmdvduvds.supabase.co over HTTP.

How it runs

Trigger: On a schedule (every day at 02:00) (plus 1 other trigger).

  1. Fetch Sources (FAQ + Blog) (HTTP Request): calls kairesume.fit
  2. Chunk and Batch (Code): runs custom JavaScript code
  3. Loop Batches (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Delete Stale Chunks (Postgres): run a query
  5. Embed Batch (Supabase) (HTTP Request): calls jhccfsyytbkfmdvduvds.supabase.co (POST)
  6. Build Upsert SQL (Code): runs custom JavaScript code
  7. Upsert Chunks (Postgres): run a query

Services it uses

Postgres

HTTP calls to: kairesume.fit, jhccfsyytbkfmdvduvds.supabase.co

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Quick Overview This workflow reindexes Markdown documentation into a Supabase Postgres pgvector table by fetching source docs from an HTTP API, chunking and embedding them via a Supabase Edge Function, upserting the vectors, and deleting stale chunks on a…

Excerpt from Filip Mijic's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.