https://github.com/wintermi/get-retail-predictions
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.
https://github.com/wintermi/get-retail-predictions
google-cloud google-cloud-platform
Last synced: 20 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/wintermi/get-retail-predictions
- Owner: wintermi
- License: apache-2.0
- Created: 2022-12-09T11:31:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-24T10:44:59.000Z (9 months ago)
- Last Synced: 2025-10-17T14:13:02.378Z (5 months ago)
- Topics: google-cloud, google-cloud-platform
- Language: Go
- Homepage:
- Size: 98.6 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Get Retail API Predictions
[](https://github.com/wintermi/get-retail-predictions/actions)
[](https://goreportcard.com/report/github.com/wintermi/get-retail-predictions)
[](https://github.com/wintermi/get-retail-predictions/blob/main/LICENSE)
[](https://github.com/wintermi/get-retail-predictions/releases)
## 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](https://github.com/wintermi/get-retail-predictions/blob/main/LICENSE) unless explicitly mentioned in the file header.