An intelligent shopping assistant that combines product search with AI-powered analysis to help users make informed purchasing decisions. The application leverages SerpAPI for product search and Groq's LLM for detailed product analysis and personalized recommendations.
- Smart Product Search: Search products across multiple stores with location-based results
- AI-Powered Analysis: Get personalized product recommendations based on your preferences
- Beautiful UI: Clean, modern interface with responsive design
- Location-Based Results: Get relevant product listings based on your location
- Detailed Comparisons: AI-generated analysis of features, prices, and value propositions
# Clone the repository
git clone https://github.com/We4TechAI/AI-Shopping-Recommender.git
cd AI-Shopping-Recommender
# Build Docker image
docker build --tag ai_shopping_recommender:latest .
# Run container
docker run -d --name ai_shopping_recommender -p 8501:8501 ai_shopping_recommender:latest
- Clone the repository:
git clone https://github.com/We4TechAI/AI-Shopping-Recommender.git
cd AI-Shopping-Recommender
- Create and activate virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
Create a
.env
file in the project root with:
SERPAPI_KEY=your_serpapi_key
GROQ=your_groq_api_key
- Run the application:
streamlit run app.py
- Python 3.8+
- Streamlit
- SerpAPI
- Groq
- python-dotenv
- pandas
- Open your browser and navigate to
http://localhost:8501
- Enter the product you're looking for
- Specify your location for relevant results
- Enter your preferences (budget, features, brand preferences, etc.)
- Click "Search and Analyze" to get personalized recommendations
The application can be configured through environment variables:
Variable | Description | Required |
---|---|---|
SERPAPI_KEY | Your SerpAPI API key | Yes |
GROQ | Your Groq API key | Yes |
The application uses SerpAPI's Google Shopping search with the following parameters:
engine
: google_shoppinggoogle_domain
: google.comhl
: hi (Hindi language support)gl
: in (India region)- Location-based searching
Uses Groq's LLM (llama-3.3-70b-versatile) for:
- Product analysis
- Feature comparison
- Personalized recommendations
- Price analysis
AI-Shopping-Recommender/
├── main.py
├── Dockerfile
├── requirements.txt
├── .env.example
├── .env
└── README.md
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes
- Test thoroughly
- Submit a pull request
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details
- Never commit your
.env
file - Keep API keys secure
- Regularly update dependencies
- Follow security best practices
-
API Key Issues
- Ensure your API keys are correctly set in
.env
- Verify API key permissions
- Ensure your API keys are correctly set in
-
Docker Issues
- Ensure ports are not in use
- Check Docker logs:
docker logs ai_shopping_recommender
-
Search Issues
- Verify internet connection
- Check SerpAPI quota
- Ensure location format is correct
For support, please:
- Check existing issues
- Create a new issue with detailed information
- Join our community discussions
- SerpAPI for product search capabilities
- Groq for AI analysis
- Streamlit for the web framework
- All contributors who have helped shape this project
Made with ❤️ by We4TechAI Team