Skip to content

BuyThisToo is an AI-powered recommendation engine that analyzes user behavior to deliver personalized product suggestions, leveraging advanced language models and DALLΒ·E 3 for custom content creation. πŸ›οΈπŸ€–

Notifications You must be signed in to change notification settings

DozenPartsOfTheKing/BuyThisToo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🍽️ Food Recommendation and Personalized Banner Creation System

🌟 Project Overview

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

πŸ› οΈ Components Description

1. πŸ“Š Recommendation Algorithm

Two powerful approaches:

  • Content-based Filtering: Analyzes user's previous interactions
  • Collaborative Filtering: Uses similar users' preferences via Nearest Neighbors models

2. 🧠 LLM (Large Language Model)

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."

3. 🎨 DALL·E 3 Integration

Creates stunning visual representations based on text prompts for marketing purposes.

4. 🎯 Personalized Advertisement Banners

Overlays customized banners with recommendations and promotions on generated images.

βš™οΈ How It Works

  1. πŸ“Š Product Recommendations: Analyzes user history
  2. ✍️ Text Generation: Creates personalized marketing messages
  3. πŸ–ΌοΈ Image Creation: Generates product visuals with DALLΒ·E 3
  4. 🎨 Banner Addition: Overlays personalized offers
  5. πŸ’Ύ Result Saving: Stores final images for campaigns

πŸš€ Installation

  1. Clone the repository:

    git clone https://github.com/MasterPo696/BuyThisToo.git
  2. Navigate to the project directory:

    cd BuyThisToo
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Set up the necessary paths to data files and API keys as required.

πŸ“‹ Usage

  1. 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.
  2. Run the program:

    python main.py
  3. The result will be an image with a banner overlaid, showcasing product recommendations.

πŸ“ Project Structure

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.

πŸ“ Notes

  • πŸ”‘ Ensure API access for AI21, OpenAI, or other LLMs.
  • πŸ“š Required libraries:
    • PIL for image processing
    • requests for web services
    • scikit-learn for recommendation algorithms

πŸ“„ License

This project is licensed under the MIT License.


Made with ❀️ for food recommendation and marketing automation

About

BuyThisToo is an AI-powered recommendation engine that analyzes user behavior to deliver personalized product suggestions, leveraging advanced language models and DALLΒ·E 3 for custom content creation. πŸ›οΈπŸ€–

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages