Live App: https://e-commercechatbot.streamlit.app/
This is a generative AI chatbot designed for e-commerce platforms. It can answer both general FAQs (e.g. "What is your refund policy?") and product-specific queries (e.g. "Show me PUMA shoes above 30% discount") using a combination of vector search, LLM-based reasoning, and SQL generation.
It uses Groq's LLama3.3, ChromaDB, and Streamlit to deliver fast and accurate responses.
- User enters a query (e.g., “Do you accept debit cards?” or “Top 3 Nike shoes under 3000”)
- The query is passed through a semantic router, which classifies it as either:
faq→ answers are retrieved from a vector DB (ChromaDB)sql→ the question is translated into an SQL query and run on the product database
- The appropriate chain (
faq_chainorsql_chain) is called. - The result is passed to a Groq-hosted LLM, which generates a conversational response.
pip install -r requirements.txtGROQ_API_KEY=your_actual_groq_api_key
GROQ_MODEL=llama-3.3-70b-versatilestreamlit run app/main.py- The product data comes from a one-time web scraping of Flipkart using Selenium.
- The app does not generate responses unless a valid GROQ API key is provided.
Kushal Samani
- Email: kushalsamani04@gmail.com
- LinkedIn: https://www.linkedin.com/in/kushalsamani

