get-retail-predictions

command module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

Get Retail API Predictions

Workflows Go Report License Release

Description

A command line application designed to provide a simple method of requesting predictions from a Google Cloud Retail API model for all sets of parameters contained within the input file.

USAGE:
    get-retail-predictions -p PROJECT_NUMBER -s SERVING_CONFIG -i INPUT_FILE

ARGS:
  -b string
    	Branch (default "0")
  -c string
    	Catalog (default "default_catalog")
  -f string
    	Filter String
  -i string
    	Parameter Input File  (Required)
  -l string
    	Location (default "global")
  -n int
    	Number of Results, 1 to 100 (default 5)
  -p string
    	Project Number  (Required)
  -s string
    	Serving Config  (Required)
  -v	Output Verbose Detail

Example Parameter Input File

[
  {
    "event_type": "detail-page-view",
    "visitor_id": "1",
    "product_details": [{ "product": { "id": "100" } }]
  },
  {
    "event_type": "detail-page-view",
    "visitor_id": "1",
    "product_details": [{ "product": { "id": "200" } }]
  }
]

License

get-retail-predictions is released under the Apache License 2.0 unless explicitly mentioned in the file header.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL