An open API service indexing awesome lists of open source software.

https://github.com/milan-960/ai-chatbot

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.
https://github.com/milan-960/ai-chatbot

tensorflow vitejs xenova xenova-transformers

Last synced: about 2 months ago
JSON representation

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.

Awesome Lists containing this project

README

          

# AI Chatbot

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.

## πŸš€ Features

- **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.

## πŸ› οΈ Technologies Used

- **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.

## πŸ–ΌοΈ Project Preview

Here’s a sneak peek of the AI Chatbot:

![AI Chatbot Interface](./public/interface-preview.png)

## πŸ“¦ Installation

### 1. Clone the repository

```bash
git clone https://github.com/yourusername/ai-chatbot.git
cd ai-chatbot
```

### 2. Install dependencies:

```bash
npm install
```

### 3. Start the development server:

```bash
npm run dev
```

### 4. Build for production

```bash
npm run build
```

### πŸ›‘οΈ Project Structure:

```bash
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
```

![AI Chatbot Preview](./public/SS/chat.png)

### πŸ‘©β€πŸ’» Contributing:

Contributions are welcome! If you have ideas to improve the chatbot or encounter any issues, feel free to open a pull request or issue.

### 🌟 Acknowledgements:

TensorFlow.js for enabling AI in the browser.
Vite for making the development workflow fast and smooth.
Lucide Icons for the elegant icons.

### πŸ“„ License:

This project is licensed under the MIT License. Feel free to use, modify, and distribute as needed.