Rivet + Chatbot-UI
Hosts Rivet with an Open AI compatible API + Chatbot-UI as a frontend
Filebrowser
brody192/filebrowser-template:latest
Just deployed
/data
chatbot-ui
ai-made-approachable/chatbot-ui
Just deployed
rivet-chat-api
ai-made-approachable/rivet-chat-api
Just deployed
This template allows you to run your Rivet-Graphs (https://rivet.ironcladapp.com/) in the cloud and talk to them via Chatbot-UI interface. Only thing you need to do is add your project files via the fileupload interface and create a custom model in Chatbot-UI!
Video-tutorial can be found here: https://youtu.be/WY2t1wFg50M
Requirements:
- Supabase account [free] (https://supabase.com/)
- Your Rivet project file with the following settings:
- Main graph selected in project settings
- Chat node(s) that should be used as streaming output need to be renamed to "output"
- Open AI API Key
Installation:
- Filebrowser: Just add username + password you want to use
- Chatbot-UI: Add all the information from supabase (see variable descriptions)
- Rivet-Chat-API: Add your Open-AI-Key
Setup:
- Go to Filebrowser, open the public URL, enter your username + password and upload your rivet project file (remember the name)
- Go to Chatbot-UI, create an account and click the link in the verification e-mail
- Go to "models" and create a custom model
- Enter any name
- For Model ID enter your rivet project file name, e.g. "example.rivet-project"
- For Base URL enter: "http://rivet-chat-api.railway.internal:3100"
- You do not need an API Key for internal communication
Further configurations can be done in your superbase account, e.g.:
- Disallow new users to sign up
- Edit the template + link in the verification e-mail
- etc.
Template Content
Filebrowser
ghcr.io/brody192/filebrowser-template:latestWEB_PASSWORD
Your password to access the web-interface
WEB_USERNAME
Your username to access the web-interface
chatbot-ui
ai-made-approachable/chatbot-uiSUPABASE_ACCESS_TOKEN
https://supabase.com/dashboard/account/tokens --> Generate new token
SUPABASE_DATABASE_URL
supabase.com --> Your project --> Project Settings --> Database --> Connection string (URI); do NOT add your password, keep it as it is
SUPABASE_REFERENCE_ID
supabase.com --> Your project --> General --> Reference ID
NEXT_PUBLIC_SUPABASE_URL
supabase.com --> Your project --> Project Settings --> API --> Project Url
SUPABASE_SERVICE_ROLE_KEY
supabase.com --> Your project --> Project Settings --> API --> Project API keys --> "service_rolesecret"
SUPABASE_DATABASE_PASSWORD
supabase.com --> Your project --> Project Settings --> Database --> Password
NEXT_PUBLIC_SUPABASE_ANON_KEY
supabase.com --> Your project --> Project Settings --> API --> Project API keys --> "anonpublic"
rivet-chat-api
ai-made-approachable/rivet-chat-apiOPENAI_API_KEY
Your OpenAI API Key