Giter Site home page Giter Site logo

synthetic-product-data-generator's Introduction

Synthetic Product Data Generation Notebook

This project houses a Jupyter Notebook designed to leverage the capabilities of Large Language Models (LLMs) via the LangChain framework for the generation of synthetic product data. It aims to provide a versatile tool for generating realistic product listings, which can be customized and used across various domains, particularly e-commerce.

Example

You can find an example of a dataset generated with this code. Its a synthetic dataset for a fishing eCommerce shop that can be found on Kaggle: Synthetic Fishing Products Dataset and was generated using Mistral 7B locally.

Author

This project is developed by Antonio Sánchez. For more details about his work and projects, visit asanchez.dev.

Motivation

The primary motivations behind this project include:

  • Exploration of LangChain: Diving into the LangChain framework to understand its potential and how it can be leveraged with different LLMs.
  • Prompt Engineering: Experimenting with diverse prompts to see their impact on the data generated by LLMs.
  • Synthetic Data Generation: Creating synthetic data for e-commerce and other projects, which can be particularly useful for testing, development, and analysis purposes.

This notebook serves as a practical exploration of these areas, showcasing how custom prompts and different LLMs can be utilized to generate data that is both varied and relevant to specific use cases.

About the Notebook

The Jupyter Notebook included in this repository is a comprehensive tool that guides users through the process of generating synthetic product data. It allows for extensive customization, enabling users to specify details such as the type of shop, the number of categories, vendors, and products to generate, along with the maximum attempts for LLMs to generate each product detail.

Key Features:

  • Generation of vendor names and product categories.
  • Creation of random combinations of categories and vendors based on user-specified parameters.
  • Detailed generation of product information, including titles, descriptions, and prices.

For detailed instructions on how to run the notebook, customize the generation parameters, and understand the complete workflow, please refer directly to the notebook included in this repository.

Installation

Before running the notebook, ensure you have Python installed on your system. The project relies on several third-party libraries, which can be installed using pip:

pip install pandas tqdm langchain langchain_core

Alternatively, if you have a requirements.txt file in your repository:

pip install -r requirements.txt

Running the Notebook in Google Colab

If you prefer not to set up a local environment, you can run the notebook directly in your browser using Google Colab. Click the badge below to open the notebook in Colab:

Open In Colab

Contributing

Contributions to improve the notebook or explore new data generation avenues are welcome. If you have ideas for improvement or new features, feel free to open an issue to discuss them or directly fork the project and create a pull request with your changes.

synthetic-product-data-generator's People

Contributors

antsanchez avatar

Stargazers

Pavan Kumar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.