Skip to content

AswaniSahoo/complaint-intelligence-system

Customer Complaint Intelligence System

Python Streamlit License Status

Overview

The Customer Complaint Intelligence System is a GenAI-powered application that analyzes, clusters, and extracts insights from customer complaints. By using advanced NLP techniques like embeddings and Large Language Models (LLMs), it transforms raw text into actionable intelligence.

Live Demo: Click Here to View App

Key Features

  • Automated Cleaning: Preprocesses raw complaint text automatically
  • Semantic Clustering: Groups similar complaints using sentence embeddings and KMeans
  • AI Summarization: Generates concise summaries and categories using Gemini or Groq
  • Smart Search: Find specific complaints using natural language queries (RAG)
  • Interactive Dashboard: Explore data through a user-friendly Streamlit interface
  • GPU Acceleration: Auto-detects CUDA for faster embedding generation

Tech Stack

  • Python (Logic & Data Processing)
  • Streamlit (User Interface)
  • Sentence Transformers (Embeddings with GPU support)
  • FAISS (Vector Database)
  • Gemini API / Groq API (LLM Intelligence)

Screenshots

Dashboard

Dashboard

Clusters

Clusters

Smart Search

Search

Getting Started

1. Installation

Clone the repository and install the required packages:

git clone https://github.com/AswaniSahoo/complaint-intelligence-system.git
cd complaint-intelligence-system
pip install -r requirements.txt

2. Setup Keys

Create a .env file in the root directory and add your API key:

GEMINI_API_KEY="your-gemini-api-key"

3. Run the Pipeline

Process the raw data:

python run_pipeline.py

4. Launch Dashboard

streamlit run app/app.py

Open your browser to http://localhost:8501.

Architecture

                    DATA PROCESSING PIPELINE
+------------------------------------------------------------------+
|                                                                  |
|  Raw CSV --> Preprocess --> Embeddings --> Clustering --> LLM   |
|  (CFPB)    (clean text)   (MiniLM/GPU)   (KMeans)      (Gemini) |
|                                                                  |
+------------------------------------------------------------------+
                      STREAMLIT DASHBOARD
+------------------------------------------------------------------+
|                                                                  |
|  Overview ---> Clusters ---> Viewer ---> Ask AI (RAG)           |
|  (metrics)    (drilldown)   (filter)    (FAISS search)          |
|                                                                  |
+------------------------------------------------------------------+

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

License

This project is licensed under the MIT License.

Author

Aswani Sahoo
AI & ML Engineer

LinkedIn GitHub

Acknowledgments

About

RAG pipeline for analyzing 12M+ customer complaints using FAISS, Sentence-Transformers & Gemini AI

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors