Inference API Response
Understanding the output format of the Onairos Inference API.
Updated 27 December 2024
apiresponseinferenceoutput
Inference API Response
Understanding the output format of the Onairos Inference API.
Sentiment JSON
The API responds with a JSON object containing an output field. This field is an array of arrays, where each sub-array contains a prediction score from the model.
{
"output": [
[[0.9998]],
[[0.9999]],
[[0.9922]],
[[0.0013]]
]
}
Score Interpretation
- Score close to
1→ High confidence level - Score close to
0→ Low confidence level - Sequence of scores corresponds to the order of input entries
Traits JSON
If the user decides to share their Personality Traits, the response will include:
{
"Traits": {
"positive_traits": {
"creativity": 9.7,
"empathy": 9.6,
"curiosity": 9.1,
"determination": 8.8
},
"traits_to_improve": {
"patience": 1.7,
"organization": 3.6
}
}
}
Traits Interpretation
| Field | Description | Range |
|---|---|---|
positive_traits | Strong character-defining traits of the user | 0-10 |
traits_to_improve | Traits the user is improving or needs to improve | 0-10 |
Using Traits Data
Use these traits to personalize user experiences, recommend content, or tailor interactions based on the user's personality profile.