A responsive and feature-rich AI chatbot built with React.js, TensorFlow.js, and Universal Sentence Encoder. This chatbot can handle queries, provide answers, and learn from user input dynamically.
- Dynamic AI Responses: Generates responses based on user input.
- Learning Capabilities: Dynamically trains on user-provided input.
- Interactive Feedback: Allows users to rate responses for accuracy.
- Typing Indicator: Displays a "thinking" animation while generating responses.
- Suggested Questions: Offers initial prompts for users.
- Responsive Design: Optimized for both desktop and mobile.
- React.js: Frontend framework.
- Vite: Modern build tool for fast development.
- TensorFlow.js: AI/ML processing in the browser.
- Universal Sentence Encoder: Lightweight language model for text similarity.
- Tailwind CSS: For elegant and responsive UI.
- Lucide Icons: Stylish icons for user interface.
Hereβs a sneak peek of the AI Chatbot:
git clone https://github.com/yourusername/ai-chatbot.git
cd ai-chatbot
npm install
npm run dev
npm run build
ai-chatbot/
βββ public/ # Static assets (images, favicon, etc.)
βββ src/ # Source code
β βββ components/ # Reusable React components
β βββ content/ # ResponseGenerator.js for AI responses
β βββ App.jsx # Main app component
β βββ index.css # Global styles
β βββ main.jsx # Entry point
βββ vite.config.js # Vite configuration
βββ package.json # Project dependencies and scripts
βββ README.md # Project documentation
Contributions are welcome! If you have ideas to improve the chatbot or encounter any issues, feel free to open a pull request or issue.
TensorFlow.js for enabling AI in the browser. Vite for making the development workflow fast and smooth. Lucide Icons for the elegant icons.
This project is licensed under the MIT License. Feel free to use, modify, and distribute as needed.