Chatbot UI 2 setup with Supabase and Ollama
Learn the January 2024 Chatbot UI 2 setup: run Supabase through Docker, configure secrets, and optionally connect Ollama for local models.
Player not loading? Watch on YouTube
Uploaded on January 10, 2024, this tutorial covers the newly released Chatbot UI 2. The speaker follows the repository's local quick start, while pointing users who prefer the older setup to the Legacy branch. These instructions describe that release's setup, rather than a current installation guide.
The walkthrough starts with cloning the repository and installing npm dependencies. This version uses a Supabase database instead of browser local storage. The speaker explains that the change supports storage needs beyond text chats. Docker runs the local backend; the tutorial references Docker installation instructions for Mac, Windows and Linux, with separate Supabase installation guidance for Windows.
Configuration includes copying the example environment file and filling in the Supabase URL, anon key and service role key. The speaker treats the service role key as a secret and also copies it into the initial SQL migration. An optional Ollama step lets Chatbot UI run models locally. At the time, the speaker says Windows support for Ollama is expected soon and mentions Docker as an option.
The demonstrated app starts with npm run chat and opens on localhost port 3000. Signup uses authentication in the local Supabase instance, rather than a Chatbot UI service account. The speaker selects an installed Ollama model, sends messages and checks their storage in the database. The first response waits for the model to load into memory; the next responds faster in the demonstration.