This is a modified version of Vercel AI Chatbot with some key differences:
- Uses Google's Gemini 2.0 Flash model instead of OpenAI
- Integrates with Supabase for Reddit posts data
- Includes knowledge chunk search functionality with vector embeddings
A modified AI Chatbot built with Next.js, Google's Gemini, and Supabase integration.
- Next.js App Router
- Advanced routing for seamless navigation and performance
- React Server Components (RSCs) and Server Actions
- Google Generative AI
- Gemini 2.0 Flash model for fast and accurate responses
- Built-in tool calling capabilities for weather information
- Supabase Integration
- Reddit posts data storage and retrieval
- Vector embeddings for knowledge search
- shadcn/ui
- Styling with Tailwind CSS
- Component primitives from Radix UI
-
Clone the repository
-
Create a
.env.localfile with the following variables:GEMINI_API_KEY=your_gemini_api_key SUPABASE_URL=your_supabase_url SUPABASE_KEY=your_supabase_key -
Install dependencies and run the development server:
# Install dependencies
bun install
# Start the development server
bun devYour app should now be running on localhost:3000.
GEMINI_API_KEY: Your Google Gemini API keySUPABASE_URL: Your Supabase project URLSUPABASE_KEY: Your Supabase project API key