Code Monkey home page Code Monkey logo

product_qa's Introduction

Product Q&A

Use Zinc Product Data API and OpenAI GPT-3 to answer questions about an Amazon product.

Usage

# OpenAI key is always required
export OPENAI_API_KEY=sk-YourOpenAiKey

# Zinc key can be omitted for some example products, but is required otherwise
export ZINC_CT=your-zinc-ct

# Summarize a product
./product-qa B01EOY7LTA

# Ask a specific question
./product-qa B01EOY7LTA --question "What is the size of the bit?"

Installation

virtualenv -p python3 venv
source ./venv/bin/activate
pip install -r requirements.txt

Or even simpler:

pip install openai faiss-cpu langchain

Example result

$ ./product-qa B095BZT4SD                                                                                ret:0 
Categories ['Tablet Accessories', 'Tablet Cases', 'Bags, Cases & Sleeves', 'Cases']
Durability 
	 Great durability, sturdiness and easy to hold. 

Protection 
	 Durable protective hardback with premium quality PU leather. Soft scratch-free microfiber interior adds comfort and an additional layer of protection. 

Style 
	 Case 

Price 
	 $11.99 

Compatibility 
	 This case is compatible with Samsung Galaxy Tab A7 Lite 8.7 inch Model (SM-T220/T225/T227) 2021 Release. It will NOT work for any other model device. 

Quality 
	 Reviews indicate that this product is of good quality, providing protection for the Samsung tablet and is lightweight and not bulky. 

You would buy this product because it is a slim and lightweight hard back design that adds minimal bulk while offering your device great protection. It has a trifold stand, durable protective hardback with premium quality PU leather, soft scratch-free microfiber interior, precise cutouts for easy access to all the controls and features, and is compatible with the Samsung Galaxy Tab A7 Lite 8.7 inch Model (SM-T220/T225/T227) 2021 Release.
$ ./product-qa B095BZT4SD --question "can it be used as a stand?"
Yes, the Samsung Tab A7 Lite Case has flip capability to transform the case into a viewing stand and keyboard stand.

product_qa's People

Contributors

richardklafter avatar aftbit avatar

Watchers

Eric Swanson avatar Doug Feigelson avatar  avatar Kostas Georgiou 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.