Amazon SageMaker

Amazon SageMaker

by UiPath

StarStarStarStarStarStarStarStarStarStar

0

Integration Service Connector

Runs

<100

Lakshmi Ganesan
Posted a year ago

Hello @Scott,

Thanks for the prompt response.

Model Input in Sagemaker looks like below -

Input format - 

{

"instances": "Kindly cancel my Sports Package & let Entertainment package continue for current month"

}

and the Output format looks like below - 

{

"Prediction":"Downgrade"

"Accuracy":"0.6635424"

}

I have tried "Model Input" Property with the above mentioned Input format enclosed in double quotes with no luck.

Could you please suggest how can i pass the above input format through Model input property in Get Inference activity.

Thanks again for your guidance.

Scott Schoenberger
Posted a year ago

Hey @Lakshmi, For file type, you'll need to identify what you are passing to the model (ie. JSON, text/csv, etc.).  You can use the pre-populated enumerated values or override with something that is not part of that list.  You can either submit a file (variable or argument from a separate activity/flow) or use the model input to directly send your prompt to the model.  If using the model input, it will still need to be appropriately formatted according to the model that you're using.  Both the file type and the expected input format should be known by whoever built and/or deployed the SageMaker model in question.

A note that the output format will vary depending on the model.  You'll likely need to deserialize the output using a vb expression  

I'm not sure I'm understanding the issue with the Iresource Object you mentioned.  

Here's some AWS documentation that should help you: 

For content type and request patterns:  https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html

The SageMaker Connector was designed to accommodate any model that may be deployed using SageMaker (whether Custom, AWS Marketplace or Jumpstart).  Most models have very different request and response patterns thus the need for some understanding of the model being used.

Lakshmi Ganesan
Posted a year ago

Hi., We have created a Text Classification model in Sagemaker & the connection has been established between Uipath & AWS Sagemaker. But we couldn't use this model inside Uipath because of Iresource Object in Activity Property.

Kindly give me an example for what kind of input we need to pass for File type & File resource  in Get Inference Activity Properties.

Publisher

UiPath

Visit publisher's page

Trusted Source

License & Privacy

License Agreement

Privacy Terms

Technical

Updated

September 6, 2023

Application

Amazon SageMaker

Support

Link: https://www.uipath.com/company/contact-us/contact-technical-support

UiPath Standard Support, see your Service Agreement.

Resources