Overview
The Supabase provider stores chat history, metrics, and feedback in your Supabase database.Features
- ✅ Chat History - Automatic conversation storage
- ✅ Metrics Tracking - Request performance data
- ✅ Feedback Collection - User feedback storage
- ✅ Auto Setup - Tables created automatically
Basic Usage
Configuration
LangChat automatically creates database tables on first run if they don’t exist.
Using with LangChat
Database Tables
LangChat uses these tables:- chat_history - User conversation history
- request_metrics - Request performance metrics
- feedback - User feedback on responses
Table Setup
Tables are created automatically. You can also get the SQL:Best Practices
1. Use Service Role Key for Setup
For initial setup, use service role key:2. Monitor Database
Check table status:Troubleshooting
Tables Not Created
Solution: Runcreate_tables_if_not_exist() or use the SQL from get_create_tables_sql().
Permission Errors
Solution: Ensure your key has proper permissions. Use service role key for setup.Next Steps
- Session Management - Learn about sessions
- Configuration - Configuration options
- Basic Usage - See examples
Built with ❤️ by NeuroBrain
