A Next.js-powered AI chat assistant with web search capabilities, powered by Google Gemini and Tavily search.
- 💬 Interactive chat interface with Google Gemini
- 🔍 Real-time web search integration via Tavily
- 🎨 Beautiful UI with animated components
- 📱 Responsive design for all devices
- 🔄 Conversation threading and persistence
- ⚡ Built with Next.js 15 and Turbopack
- Clone the repository:
git clone https://github.com/mo-jasim/Generative-Ai-Chat-Assistant.git
cd Generative-Ai-Chat-Assistant- Install dependencies:
pnpm install- Set up environment variables:
Create a
.env.localfile with:
GEMINI_API_KEY=your_gemini_api_key
TAVILY_API_KEY=your_tavily_api_key
GEMINI_MODEL=gemini-2.0-flash- Run the development server:
pnpm devOpen http://localhost:3000 to see the application.
- Tavily: https://app.tavily.com/home
- Google Gemini: https://aistudio.google.com/apikey
- Pinecone: https://www.pinecone.io/start/
- OpenAI: https://platform.openai.com/api-keys
- Framework: Next.js 15 with Turbopack
- AI Model: Google Gemini via OpenAI-compatible API
- Search: Tavily API for real-time web search
- Styling: Tailwind CSS with custom animations
- Package Manager: pnpm
- Deployment: Vercel-ready
Feel free to contact me to discuss your requirements and get started!