UiPath Documentation
activities
latest
false
Integration Service activities

Score

Use TypeSafe to rate content against an ordered list of levels, with a probability-weighted score and a probability for every level.

Description​

This activity rates the state against an ordered list of levels. It returns a probability-weighted score, the levels, a probability for every level, and a confidence.

For example, to measure customer frustration, enter a message as the state and ["Calm","Frustrated","Very angry"] as the levels.

Project compatibility​

Windows | Cross-platform

Prerequisites​

Configuration​

FieldDirectionDescription
ConnectionInputThe connection established in Integration Service. Access the dropdown menu to choose, add, or manage connections.
StateInputRequired. The content to evaluate, as plain text or JSON. A JSON object or array is sent as structured data. The state and the instructions together can be up to 32k tokens.
InstructionsInputRequired. What the model rates about the state. Enter plain text, or a JSON object that holds the question in one field and reference data in others.
LevelsInputRequired. The level descriptions, as an ordered list from lowest to highest, for example ["Calm","Frustrated","Very angry"]. Between 2 and 10 levels.
ModelInput and outputOptional. The model to use. If empty, the activity uses jev-latest. As an output, the versioned ID of the model that produced the answer, for example jev-1.13.0.
Score answerOutputThe full response, as one object.
ScoreOutputThe probability-weighted position across the levels, where 0 is the first level. The score can fall between two levels.
ConfidenceOutputHow certain the model is, from 0 to 1, derived from the probability distribution.
LegendOutputEach level index mapped to its description.
ProbabilitiesOutputEach level index mapped to its probability. The values add up to 1.
Input tokensOutputThe number of input tokens billed for the request.
Output tokensOutputThe number of output tokens. Output tokens aren't billed.
  • Description​
  • Project compatibility​
  • Prerequisites​
  • Configuration​

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated