AI on demand: Mapika/decider-31b

From MediaWiki
Revision as of 10:35, 19 October 2026 by Sst-djo (talk | contribs) (→‎Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

System One decision models such as Mapika/decider-31b assess text and return structured answers and probabilities in a single forward pass.

They support three question types:

  • Choice
    • Selects the single best option (or returns a probability distribution) from a fixed set of 2 to 255 declared options.
  • Noul (Yes/No)
    • Returns a boolean probability distribution for a binary question.
  • Score
    • Assigns a numeric value along a defined ordered scale (typically 2 to 10 levels) to represent a grading rubric or rating.

These models suit classification, routing, and decision support. They do not generate conversational answers or explanations, and their predictions can be wrong. Reported probabilities require evaluation on representative data before using them for consequential automation.

Our Mapika/decider-31b implementation has a multilingual checkpoint with a fixed 40960-token input limit.

Usage

Usage - Choice

The following choice example routes a request to a department.

Example call:

# Set your personal key:
STONEY_KEY=sk-....

# Execute the actual call:
curl --fail-with-body -sS \
  https://llm.stoney-cloud.com/v1/systemone \
  -H "apikey: $STONEY_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary '{
    "model": "Mapika/decider-31b",
    "state": {
      "document": "Meine Rechnung wurde zweimal belastet. Bitte prüfen Sie die doppelte Zahlung."
    },
    "questions": {
      "department": {
        "type": "choice",
        "instructions": "Which department should handle this request?",
        "criteria": {
          "technical": "Application errors and login problems",
          "billing": "Invoices, payments and duplicate charges",
          "support": "General customer support and newsletter preferences"
        }
      }
    }
  }' | jq .

Example answer:

{
  "model": "Mapika/decider-31b",
  "answers": {
    "department": {
      "type": "choice",
      "choice": "billing",
      "confidence": 0.9264,
      "x_p_max": 0.9509,
      "certainty": 0.795,
      "probabilities": {
        "technical": 0.0351,
        "billing": 0.9509,
        "support": 0.014
      }
    }
  },
  "usage": {
    "input_tokens": 88,
    "output_tokens": 0,
    "prompt_tokens": 88,
    "completion_tokens": 0
  }
}

Usage - Noul

The following noul example detects if customer explicitly requests a refund.

Example call:

# Set your personal key:
STONEY_KEY=sk-....

# Execute the actual call:
{
  "model": "Mapika/decider-31b",
  "answers": {
    "refund_requested": {
      "type": "noul",
      "noul": 0.9327
    }
  },
  "usage": {
    "input_tokens": 89,
    "output_tokens": 0,
    "prompt_tokens": 89,
    "completion_tokens": 0
  }
}

Example answer:

  "model": "Mapika/decider-31b",
  "answers": {
    "refund_requested": {
      "type": "noul",
      "noul": 0.9851
    }
  },
  "usage": {
    "input_tokens": 60,
    "output_tokens": 23,
    "prompt_tokens": 60,
    "completion_tokens": 23
  },
  "latency_ms": 86.9
}

Usage - Score

The following score example estimates the urgency of a support request. The criteria is arranged from lowest to highest.

Example call:

# Set your personal key:
STONEY_KEY=sk-....

# Execute the actual call:
curl --fail-with-body -sS \
  https://llm.stoney-cloud.com/v1/systemone \
  -H "apikey: $STONEY_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary '{
    "model": "Mapika/decider-31b",
    "state": {
      "document": "Unser gesamtes Produktionssystem ist ausgefallen. Alle Kunden sind betroffen und können keine Bestellungen aufgeben. Wir benötigen sofort Hilfe."
    },
    "questions": {
      "urgency": {
        "type": "score",
        "instructions": "How urgent is this support request?",
        "criteria": [
          "Not urgent: informational request with no operational impact",
          "Low urgency: minor inconvenience with a workaround",
          "Moderate urgency: partial disruption affecting some users",
          "High urgency: major disruption requiring prompt attention",
          "Critical urgency: complete production outage affecting all customers"
        ]
      }
    }
  }' | jq .

Example answer:

{
  "model": "Mapika/decider-31b",
  "answers": {
    "urgency": {
      "type": "score",
      "score": 3.9,
      "confidence": 0.915,
      "x_p_max": 0.9466,
      "certainty": 0.8337,
      "legend": {
        "0": "Not urgent: informational request with no operational impact",
        "1": "Low urgency: minor inconvenience with a workaround",
        "2": "Moderate urgency: partial disruption affecting some users",
        "3": "High urgency: major disruption requiring prompt attention",
        "4": "Critical urgency: complete production outage affecting all customers"
      },
      "probabilities": {
        "0": 0.0076,
        "1": 0.011,
        "2": 0.0039,
        "3": 0.031,
        "4": 0.9466
      }
    }
  },
  "usage": {
    "input_tokens": 140,
    "output_tokens": 0,
    "prompt_tokens": 140,
    "completion_tokens": 0
  }
}