AI Chat Application | ChatGPT-like frontend interface | React
Note: This frontend-only app is built using React and has no backend components. It uses a JSON file (/src/config/sampleData.json) as sample data for the frontend use case. The questions entered are matched to the questions in the JSON file based on the similarity index to filter out the most relevant answer when matched with a similarity of greater than 0.5.
- React + Javascript
- Material UI (MUI)
- React Router
- String Similarity (string-similarity)
- Notistack
- ChatGPT-like conversation window
- Rating and Feedback functionality for each response
- Save chat functionality (past conversations window)
- Filtering past conversations based on rating/feedback and timestamp
- Responsive design
- Dark mode
- No backend => no auth
- Saved conversation cannot be re-saved due to the functionality being based on the last index of previously saved conversations. While the rating of the previously saved conversations is possible, the data will only persist in the local state but not in the local storage when attempted to save once again.
- Enforcement of better component modularity
- Enforcement of a richer filter set
- Enforcement of better-organized theme
- Enforcement of better state management (Rating buttons visibility, etc..)
-
git clone https://github.com/nay-22/BOT-AI.git
-
cd BOT-AI
-
npm install
-
npm run dev
-
http://localhost:5173/