Vsai2004/AI_Customer_Support_Bot
0
1---2title: AI Customer Support Bot3emoji: 🤖4colorFrom: blue5colorTo: green6sdk: streamlit7sdk_version: 1.50.08app_file: app.py9pinned: false10license: mit11---12 13# AI Customer Support Bot14 15An intelligent customer support bot that can answer questions based on your documents using advanced NLP models.16 17## Features18 19- **Document Processing**: Upload PDF or text files, or use built-in sample documents20- **Intelligent Q&A**: Uses DistilBERT and sentence transformers for accurate responses21- **Feedback Loop**: Automatically improves responses based on simulated feedback22- **Real-time Chat**: Interactive chat interface with conversation history23- **Analytics**: Track response times and conversation statistics24 25## How to Use26 271. **Choose a Document Source**:28 - Select from sample documents (FAQ, API docs, Product guide)29 - Upload your own PDF or text file30 - Paste text directly31 322. **Ask Questions**: Once the bot is initialized, type your questions in the chat interface33 343. **View Results**: Get instant AI-powered responses with context from your documents35 36## Sample Questions to Try37 38- "How do I reset my password?"39- "What's the refund policy?"40- "How do I contact support?"41- "What are the API rate limits?"42- "How do I get started?"43 44## Technical Details45 46- **Embedding Model**: sentence-transformers/all-MiniLM-L6-v247- **QA Model**: distilbert-base-uncased-distilled-squad 48- **Vector Store**: FAISS for semantic search49- **Framework**: LangChain for document processing50 51## Deployment52 53This app is designed to run on Hugging Face Spaces with Streamlit. It automatically handles:54- Model caching for faster subsequent loads55- Memory-efficient document processing56- Error handling and graceful fallbacks57 58## Limitations on HF Spaces59 60- File uploads are limited to reasonable sizes61- Models are cached but initial load may take time62- Persistent storage is limited63 64## Local Development65 66To run locally:67```bash68pip install -r requirements.txt69streamlit run app.py70```