Google cloud-vision-api product search response limits not specified

874 views Asked by At

I've been using Google cloud product search api for 6 months now and the maximum products I could get in a response was 10(which I think is default).

But I want to scale up my system, thus want more products in the productSearch API response. I tried finding out the limits and way to change the returned number of products, couldn't find any in the official documentation (https://cloud.google.com/vision/product-search/docs/searching#product-search-get-similar-products-go).

It would be great if I could get some help here.

Thanks

2

There are 2 answers

3
ericcco On

You can check the Quotas and Limits of Cloud Vision API Product Search on the documentation.

In case you want to increase the quotas, and based on the documentation, you should select "EDIT QUOTAS" from the Quotas Page. Once you do the request, it will be reviewed and you will be notified either has been approved or denied.

About the limit you are interested in, I found this GitHub repository where you can find the vision-api.json with the specified parameters:

"parameters": {
                    "pageSize": {
                      "description": "The maximum number of items to return. Default 10, maximum 100.",

Hope this was what you were looking for!

7
Brendan On

ProductSearchParams is where you would specify parameters when doing a search in ProductSearch. There is no way for you to control how many results are returned when searching.

The ProductSearch api provides you with the N best matches, so even as you scale up to an extremely large product set, it will still return the top results.