RUN:
npx flowise start
- Open http://localhost:3000/ in your bowser
- Sign in (instance running locally on your machine, local login)
Supabase setup
- Create a Supabase project
- In Supabase, create a new project (choose a name, region, and a database password - you will need this password again, so write it down).
- Enable pgvector
- Open SQL Editor in Supabase and enable the
vector extension (pgvector): type create extension if not exists vector; and Run
- Click on Connect
- Scroll down to Transaction pooler → expand view
- You will need to enter this information in Flowise - instructions below
Knowledge Base Setup in Flowise (FastHTML.txt)
- In Flowise Navigate to Document Stores
- From the left sidebar, select Document Stores.
- Create a New Document Store
- Click Create (or equivalent action) to initialize a new document store.
- Give it a clear name (e.g.,
FastHTML_KB).
- Click on + Add Document Loader
- Choose Text File loader for plain text files.
- Upload your document :
FastHTML.txt.
- Select a suitable Splitter. Our file is formatted as .md so we will choose Markdown Text Splitter - Split by Headers H1
- Upload FastHTML.txt
- Upload the
FastHTML.txt file into the document loader.
- Verify the file is successfully ingested.
- Configure Text Chunking
- Enable chunking for the document.
- Set chunk size and overlap parameters (to be discussed later).
- Confirm chunking is applied before indexing.
- Upsert Chunks
- Select an Embedding Model
- Choose an embedding model compatible with your setup (API-based or local). - OpenAI Embeddings with our flowise API key (see Demo 1)
- Ensure it is compatible with the model will be reused later at query time. (OpenAI)
- Select a Vector Store Provider
- Select Postgres
- Create New
- give it a name
- copy “user” from the supabase transaction pooler parameters into User in flowise
- enter supabase password
- click on add
- copy “host” from the supabase transaction pooler parameters into Host in flowise
- copy “database:” from the supabase transaction pooler parameters into Database in flowise
- copy “port:” from the supabase transaction pooler parameters into Port in flowise