This innovative system combines recommendation algorithms, LLM (Large Language Models), and DALLΒ·E 3 to create personalized advertisement banners. The system features:
π Recommendation System: Analyzes user interaction data for personalized product suggestions π€ LLM for Text Generation: Creates tailored product descriptions and offers π¨ DALLΒ·E 3 for Image Creation: Generates visual product representations π― Personalized Banners: Adds eye-catching advertisement banners to images
Two powerful approaches:
- Content-based Filtering: Analyzes user's previous interactions
- Collaborative Filtering: Uses similar users' preferences via Nearest Neighbors models
Leverages models like AI21 and OpenAI to generate engaging descriptions. Example:
"While you're enjoying tasty apples with other fruits, we recommend complementing it with a delicious juice or light dessert."
Creates stunning visual representations based on text prompts for marketing purposes.
Overlays customized banners with recommendations and promotions on generated images.
- π Product Recommendations: Analyzes user history
- βοΈ Text Generation: Creates personalized marketing messages
- πΌοΈ Image Creation: Generates product visuals with DALLΒ·E 3
- π¨ Banner Addition: Overlays personalized offers
- πΎ Result Saving: Stores final images for campaigns
-
Clone the repository:
git clone https://github.com/MasterPo696/BuyThisToo.git
-
Navigate to the project directory:
cd BuyThisToo
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up the necessary paths to data files and API keys as required.
-
Make sure you have the following data files:
- user_interactions.csv: Data on user interactions with products.
- final_standardized_labelled.csv: Data on products with labels.
- Ensure the files are placed in the correct folders.
-
Run the program:
python main.py
-
The result will be an image with a banner overlaid, showcasing product recommendations.
BuyThisToo/
β
βββ data/
β βββ user_interactions.csv
β βββ final_standardized_labelled.csv
β
βββ app/
β βββ banner.py
β βββ image.py
β βββ processing.py
β βββ __init__.py
β
βββ config.py
βββ llm/
β βββ ai21.py
βββ recomender.py
βββ main.py
- data/ β Contains user and product data files.
- app/ β Directory containing the functions for image processing, banner creation, and description cleaning.
- llm/ β Interface for working with AI models like AI21 or OpenAI.
- recomender.py β File that contains the recommendation system logic.
- main.py β The main executable file that runs the entire process.
- π Ensure API access for AI21, OpenAI, or other LLMs.
- π Required libraries:
PIL
for image processingrequests
for web servicesscikit-learn
for recommendation algorithms
This project is licensed under the MIT License.
Made with β€οΈ for food recommendation and marketing automation