A simple AI chatbot built for learning FastAPI, LangChain, and frontend-backend integration.
This project uses:
- FastAPI for backend
- Groq API with Llama 3.1
- LangChain for conversation handling
- HTML, CSS, and JavaScript for frontend
Features:
- Chat UI with modern styling
- Typing animation effect
- Scrollable chat history
- Conversational memory
- Fast LLM responses using Groq
Install dependencies:
pip install -r requirements.txtCreate a .env file and add:
GROQ_API_KEY=your_api_keyRun the backend first:
uvicorn main:app --reloadThen run the frontend using Live Server or a local HTTP server and open index.html in the browser.
This project was created for learning and experimentation with AI chatbot development.