run-saina/saina-helm-0.8b
A purpose-built decision model for workflow automation.
Run run-saina/saina-helm-0.8b with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| context |
string
|
The text or situation to evaluate.
|
|
| question |
string
|
What do you want to ask about the context?
|
|
| answers |
string
|
One answer per line (at least two). For ratings, order from lowest to highest. For yes/no, enter the yes answer first and the no answer second.
|
|
| question_type |
string
(enum)
|
single_choice
Options: single_choice, multi_choice, rating, yes_no |
Pick one answer by default, or choose multiple answers, an ordered rating, or yes/no.
|
| mode |
string
(enum)
|
distribution
Options: distribution, decision |
Return scores, or apply a decision threshold.
|
| threshold |
number
|
0.8
Max: 1 |
Decision mode only: minimum probability to accept an answer.
|
| request_json |
string
|
|
Optional advanced input: a native /v1/ask JSON request for multiple questions. Overrides the form values when supplied; required fields must still be provided.
|
{
"type": "object",
"title": "Input",
"required": [
"context",
"question",
"answers"
],
"properties": {
"mode": {
"enum": [
"distribution",
"decision"
],
"type": "string",
"title": "Mode",
"default": "distribution",
"x-order": 4,
"description": "Return scores, or apply a decision threshold."
},
"answers": {
"type": "string",
"title": "Answers",
"x-order": 2,
"minLength": 1,
"description": "One answer per line (at least two). For ratings, order from lowest to highest. For yes/no, enter the yes answer first and the no answer second."
},
"context": {
"type": "string",
"title": "Context",
"x-order": 0,
"minLength": 1,
"description": "The text or situation to evaluate."
},
"question": {
"type": "string",
"title": "Question",
"x-order": 1,
"minLength": 1,
"description": "What do you want to ask about the context?"
},
"threshold": {
"type": "number",
"title": "Threshold",
"default": 0.8,
"maximum": 1,
"minimum": 0,
"x-order": 5,
"description": "Decision mode only: minimum probability to accept an answer."
},
"request_json": {
"type": "string",
"title": "Request Json",
"default": "",
"x-order": 6,
"description": "Optional advanced input: a native /v1/ask JSON request for multiple questions. Overrides the form values when supplied; required fields must still be provided."
},
"question_type": {
"enum": [
"single_choice",
"multi_choice",
"rating",
"yes_no"
],
"type": "string",
"title": "Question Type",
"default": "single_choice",
"x-order": 3,
"description": "Pick one answer by default, or choose multiple answers, an ordered rating, or yes/no."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "object",
"title": "Output"
}