eldr.ai | ELDR AI - Predictions & Recommendations via Text
In the previous sections we looked at Predictions, Recommendations
and Insights. Now let's have a look at the various ways of getting this information from ELDR AI. You can Ask ELDR
via Form, API, CSV, URL, Text and Chart. Here we will explore the Text function which is primarily for quick on-page queries/sandboxing
independent of a form, and to get raw human-readable non-JSON text output.
You can skip this section if you're not going to use the ELDR AI Text function.
Navigate to "Ask ELDR" via the Dashboard, side bar or nav menu, and select your Model and Model Variant using the top two
drop downs.
You can toggle any of the Ask Methods (e.g. Form, API etc) by clicking on them.
Click on the Text heading:
As you can see, all parameters are sent in via the Text Inputs text box in a query line format, something like this:
type=full&model-variant-id=1228&PostCode=CH62&CreditScore=0.4&Age=0.6&Product=Chocolate&PaymentMethod=VisaCredit&PostCode1=IP5&CreditScore1=0&Age1=0.9&Product1=Crisps&PaymentMethod1=VisaDebit
Query string parameters are as follows:
Type - determines the coverage - type is always "full" until further notice.
Model Variant Id [OPTIONAL] - you can find this at the top of the page in the Model Variant
dropdown and is displayed by default in the sample URL of the Ask Page (in this case 1228) - if you don't send it in, the last viable Model Variant
will be used - modeVariantId.
Inputs - a string containing each input label and value. In the example above we are sending 2 requests in at the
same time. To do this, as shown above, append 1,2,3, etc to each additional request. Don't worry if you have numbers in the field labels themselves, ELDR
AI will still recognise them.
If you click on Ask ELDR (Text) - you will receive a response in the Text Outputs box:
Predictions - a list of predictions for each output in order of request
Predictions Ordered - a list of predictions for each output in order of request, but sorted by high to low output value
Recommendations - a list of recommendations per ipc in order of request
That concludes the ELDR AI guide to getting Predictions and Recommendations via Text