Skip to main content
Decision models evaluate questions about your input and return typed answers your application can use. Use them to classify requests, choose a handler, or score content against a rubric. Baseten hosts Laya, a decision model developed by ConvAI Innovations, through the System One API. You don’t need to deploy a model. Send text in state and define the questions to answer in questions.

Supported models

Question types

You can include several named questions in one request. Each answer appears under its question’s name in the response. Define narrow questions and use application logic to combine the results.

Send a decision request

Create a Baseten API key and set the BASETEN_API_KEY environment variable. This example routes a support request, checks whether the customer wants a refund, and scores urgency. Send plain text in state.
To evaluate the support request:Install the Baseten Performance Client:
Save this example as decide.py and run python3 decide.py.
decide.py
Pass one request in a list and read its result from response.data[0].
Output
The answers object includes these typed values (other response fields are omitted):
Answers
A score can fall between rubric levels. A noul value is a probability, so your application chooses the threshold for a yes/no decision. See the System One reference for request fields and response shapes.

Usage

The response reports input tokens in usage.input_tokens and reports usage.output_tokens as 0. See Model API usage to track requests and tokens.