thevikramrajput/ai-feedback-analyzer
0
AI Product Feedback Analyzer
A production-style AI system that converts raw user reviews into actionable product insights using NLP and pre-trained models.
๐ Live Demo: Hugging Face Spaces
๐ฏ Problem Statement
Product teams cannot manually read thousands of user reviews. They need an automated system to:
- Understand overall user sentiment
- Discover the main complaint categories
- Prioritize issues based on frequency and impact
- Get AI-generated summaries of what users are saying
๐ Solution
An end-to-end AI pipeline that:
- Loads Google Play Store reviews from CSV
- Preprocesses text (cleaning, filtering English reviews)
- Analyzes sentiment based on star ratings
- Clusters negative reviews to discover complaint patterns
- Generates AI summaries using HuggingFace Inference API (BART-large-CNN)
- Visualizes everything in a product analytics dashboard
โจ Features
๐ค AI-Powered Summary
Click "Generate Detailed AI Summary" to get:
- Overall Summary - AI-generated summary of all reviews
- What Users Are Complaining About - Summary of negative feedback
- What Users Love - Summary of positive reviews
- Category-wise Summaries - Login issues, bugs, feature requests, messaging
- Actual User Quotes - Real complaints and praises
- Action Items - Recommendations based on user feedback
๐ ๏ธ Tech Stack
๐ Project Structure
ai-feedback-analyzer/
โโโ app.py # Main Streamlit app (HF Spaces)
โโโ requirements.txt # Dependencies
โโโ data/
โ โโโ Training_Data.csv
โโโ backend/ # FastAPI (local dev)
โ โโโ app.py
โ โโโ data_loader.py
โ โโโ preprocess.py
โ โโโ sentiment.py
โ โโโ clustering.py
โ โโโ insights.py
โโโ frontend/
โโโ app.py # Streamlit (local dev)โก Quick Start
Hugging Face Spaces (Recommended)
Visit: https://huggingface.co/spaces/thevikramrajput/ai-feedback-analyzer
Local Development
# Install dependencies
pip install -r requirements.txt
# Run Streamlit app
streamlit run app.pyWith Backend API (Optional)
# Terminal 1: Start API
cd backend
uvicorn app:app --reload --port 8000
# Terminal 2: Start Dashboard
cd frontend
streamlit run app.py๐ Dashboard Features
- KPI Cards - Total reviews, positive/negative %, health score
- Sentiment Pie Chart - Visual sentiment distribution
- Top Issues Bar Chart - Most frequent complaint categories
- AI Summary Section - Detailed insights from reviews
- Reviews by Category - View ALL reviews in each category
- All Reviews Table - Complete filterable review list
๐ CSV Format
Your CSV should have these columns:
content- Review text (required)score- Star rating 1-5 (required)userLang- Language code (optional)app_id- App identifier (optional)
๐ฎ Future Improvements
- [ ] Multilingual support
- [ ] Time-series trend analysis
- [ ] Competitor comparison
- [ ] Export to PDF/Excel
- [ ] Custom LLM integration
