Coder Social home page Coder Social logo

michael-chi / genai-product-catalog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/genai-product-catalog

0.0 0.0 0.0 5.98 MB

License: Apache License 2.0

Python 7.74% Jupyter Notebook 90.96% Dockerfile 0.07% Starlark 1.23%

genai-product-catalog's Introduction

GenAI for Product Catalog Enrichment

This repository showcases the application of Google Cloud's Generative AI for product cataloging. The solution will:

  • Suggest product category given a sparse description and (optionally) a product image
  • Generate product attributes
  • Generate detailed marketing copy for these products

These results are grounded using a customer provided product catalog, enabling more specific and relevant results than a purely generative approach would provide.

Data Scientist / Developer Setup

Download and install the following utilities to make the most of this project.

Prerequisits

  • Google Cloud CLI

    It's recommended that you download and run the install script from your $HOME/bin directory.

  • Python 3.11+

Setup

Setup a Virtual Environment

This example uses pip as it's installed with Python3

# Create a development environment in the directory
python3 -m venv venv
# Activate the virtual environment
source ./venv/bin/activate
# Update PIP
pip install --upgrade pip
# Install dependencies
pip install -r conf/requirements.txt

Setup Google Cloud Development Tools

Add and ensure the following lines exist in your $HOME/.zshrc or $HOME/.bashrc respective to your terminal preferences.

# Sets the default Python SDK for Google Cloud
export CLOUDSDK_PYTHON=.venv

# These lines SHOULD HAVE been added by the Google Cloud CLI Setup:
# The next line updates PATH for the Google Cloud SDK.
if [ -f '$HOME/bin/google-cloud-sdk/path.zsh.inc' ]; then . '$HOME/bin/google-cloud-sdk/path.zsh.inc'; fi

# The next line enables shell command completion for gcloud.
if [ -f '$HOME/bin/google-cloud-sdk/completion.zsh.inc' ]; then . '$HOME/bin/google-cloud-sdk/completion.zsh.inc'; fi

# Adds utilities to path:
export PATH=$PATH:$JAVA_HOME/bin:$HOME/bin

Contributors

Installing Java

Install Java JDK 17 and ensure it's on your path.

Installing NodeJS

Install the latest Node JS and make sure it's on your path; this is used to manage the build environment.

Installing Bazel

Once Java and Node JS are installed, run the following commands from the terminal.

# May require sudo
npm install -g @bazel/bazelisk

npm install -g @bazel/ibazel

Now you can use the the bazel build utility to run, test, and add confidently to the repository. Please see the development tool chain for more information.

genai-product-catalog's People

Contributors

rrmcguinness avatar rmcguinness avatar michael-chi avatar abhishekbhagwat 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.