Supabase

Prerequisite

  1. Register an account for Supabase

  2. Click New project

  1. Input required fields

Field Name
Description

Name

name of the project to be created. (e.g. Flowise)

Database Password

password to your postgres database

  1. Click Create new project and wait for the project to finish setting up

  2. Click SQL Editor

  1. Click New query

  1. Copy and Paste the below SQL query and run it by Ctrl + Enter or click RUN. Take note of the table name and function name.

  • Table name: documents

  • Query name: match_documents

If some cases, you might be using Record Manager to keep track of the upserts and prevent duplications. Since Record Manager generates a random UUID for each embeddings, you will have to change the id column entity to text:

Setup

  1. Click Project Settings

  1. Get your Project URL & API Key

  1. Copy and Paste each details (API Key, URL, Table Name, Query Name) into Supabase node

  1. Document can be connected with any node under Document Loader category

  2. Embeddings can be connected with any node under Embeddings category

Filtering

Let's say you have different documents upserted, each specified with a unique value under the metadata key {source}

You can use metadata filtering to query specific metadata:

UI

API

Resources

Last updated