cancel
Showing results for 
Search instead for 
Did you mean: 

The Data Attribute Recommendation - Inference request objects limited

Hi!

In Input limits "Inference request objects" to classify = Maximum: 50.

Tell me please, how I can classify 10 000 records with minimal labor?

Accepted Solutions (0)

Answers (2)

Answers (2)

mhaas123
Explorer
0 Kudos

Hi Tatiana,

let me expand on Evgeny's answer:

You can use the InferenceClient.do_bulk_inference() method to classify multiple items. To make an instance of InferenceClient, you can use the InferenceClient.construct_from_service_key method.

A general introduction to the SDK is also available, which includes a section on Inference.

Let me know if this works for you.

Michael

Hi Michael,

Thanks for the links and instructions. Everything is working.

Regards, Tatiana

0 Kudos

Hi Tatiana,

At the moment there is no API functionality to classify batches of more than 50 records per one API request, so you would need to split your input records in batches of 50 and send separately.

Good news is that we have a python SDK for DAR that can do this (split into batches and send) for you. https://github.com/SAP/data-attribute-recommendation-python-sdk

Also please note, that trial accounts have some limitations, so you cannot classify more than 2 000 records in total (all limits)

Hope it helps,

Evgeny

0 Kudos

Evgeny, thanks a lot!