This project automates the process of harvesting and summarizing Amazon customer reviews for a specified product. Using OpenAI, it provides a concise summary of customer feedback, helping users quickly understand the general sentiment and key points from multiple reviews.
-
Clone the repository:
git clone https://github.com/shahmitul-genai/ReviewEngine
-
Navigate to the project directory
cd customer_reviews
-
Install Poetry using pip (if not already installed):
pip install poetry
-
Activate the virtual environment created by Poetry:
poetry shell
-
Install project dependencies using Poetry:
poetry install
Create a .env
file and add your own OpenAI API key in the .env
file as follows:
OPENAI_API_KEY='your-key-here'
-
After installing the dependencies, you can run the Streamlit app in root directory by executing the following command:
streamlit run app_cr.py
-
Follow the prompts to input the product description
-
Move the slide bar to select number of reviews to pull.
-
The script will display the top 10 ranking customer reviews and the overall review summary.
This project is licensed under the MIT License. See the LICENSE file for details.