Skip to main content

Semantic Routing Reference

This reference lists the semantic router controls on a PaletteAI Inference Launchpad appliance, their defaults, and what each value does. For the concepts behind them, refer to Routing Behavior. For the steps to set them, refer to Configure Semantic Routing.

Semantic Router Card​

The Semantic router card is on the Configurations tab of the Settings page.

ControlTypeDefaultWhat it does
Run the semantic router on this boxToggleOn, wherever the appliance can run itRuns the semantic router. Off stops its engine and frees its GPU memory. The main model keeps serving without a restart. On again redeploys the copy that stays on the appliance.
Refuse jailbreak attemptsToggleOnTurns the jailbreak check on or off. For both states, refer to Guard Toggles.
Scan prompts for personal data before they leave the boxToggleOnTurns the personal data check on or off. For both states, refer to Guard Toggles.
Apply semantic router settingsButtonNot applicableApplies the toggle changes. It reads Turn on semantic router or Turn off semantic router when the router toggle changed.

Semantic Router States​

StateEffect
OnThe semantic router reads each routed request, picks a rule, and runs the guard's checks on the request.
OffThe category and Thinking columns of the routing rules have no effect, decision recording records nothing new, and auto requests go to the box default model. The Semantic routing card shows The semantic router is not serving this box, so category rules have nothing to match and auto requests follow the box default.

Console Messages​

MessageWhen it appears
Started deploying the semantic router.The semantic router is turned on.
Stopped the semantic router. It stays deployed.The semantic router is turned off.

Guard Toggles​

ToggleWhen onWhen off
Refuse jailbreak attemptsThe semantic router refuses a request that it reads as a jailbreak attempt.The semantic router no longer refuses requests as jailbreak attempts.
Scan prompts for personal data before they leave the boxA prompt bound for a provider is read in full first, and a prompt with personal data stays on the appliance.No scan runs, and prompts reach providers unread.

The personal data check applies only to requests that would leave the appliance for a frontier provider or an external inference endpoint. A request that a local model answers is not held back for personal data.

Reasons the Semantic Router Is Unavailable​

The Run the semantic router on this box toggle is unavailable in the following cases. The Why the semantic router is unavailable tooltip on the toggle names the case.

CaseWhat it means
The cluster has no GPUThe semantic router needs a GPU and cannot run on this cluster.
Every GPU is too smallNo GPU has enough memory for the semantic router.
The semantic router does not fit beside the deployed modelThe GPUs the main model uses have no room left for the semantic router, so it is not deployed.
The appliance cannot yet tell whether it fitsThe semantic router is held until the appliance can read whether it fits beside the deployed model.

When the cluster has GPUs but the GPU driver is not publishing them, the card shows an error that names the driver to install. The toggle stays available.

Routing Rules​

Each category on the Semantic routing card has three rules. Each rule has a Model column and a Thinking column.

RuleConsole hintWhen the rule answers
Simplebelow <n>%The request scores below the Complexity threshold, and the rule names a model.
Complex<n>% and aboveThe request scores at or above the Complexity threshold, and the rule names a model.
Fallbackwhen a request is not scoredThe request is not scored, or its Simple or Complex rule names no model.

In each hint, <n> is the Complexity threshold. When the Fallback rule also names no model, the request goes to the box default model.

The six categories in the routing editors are Code planning, Code development, Code refactoring, Code review, Code test generation, and General. For the Thinking values, refer to Thinking Directive Modes.

Every rule starts filled with the model and reasoning depth that apply to the client today. A rule that follows the defaults is tagged default.

Complexity Threshold​

Where it is setPrecedenceValue
The client's Routing tabFirstA percentage set with the Complexity threshold slider.
The Routing step of the workspace's policySecondA percentage set with the policy's Complexity threshold slider.
DefaultLast50%.

Use default clears the client's own value, and the client follows the next layer.

Decision Recording Controls​

Only a platform administrator can view or change these controls.

ControlWhereDefaultWhat it does
Record the classified turns of this policy's clientsThe Routing step of a policyOffRecords the classified requests of every client in the workspaces that follow the policy.
Turns kept per clientThe Routing step of a policy1,000Sets how many requests each client keeps. When a client holds that many, each new request replaces its oldest.
Recording columnThe Policies tabNot applicableShows each policy's setting, such as Off or Last 1,000 per client.
Record this client's classified turnsThe Decision recording card on the client's Routing tabOn, while the policy recordsOff excludes the client from its policy's recording. The requests already recorded stay available to download.
Turns recorded, Space used, Dates coveredThe Decision recording cardNot applicableReport the requests recorded for the client.
Download CSVThe Decision recording cardNot applicableDownloads the client's recorded requests.
Delete recordsThe Decision recording cardNot applicableDeletes the client's recorded requests after confirmation. Deleted requests cannot be recovered.

The following table describes what is recorded.

CaseDetail
Which requestsOnly the requests the semantic router reads, which are those that send auto or come through an alias set to Use Semantic Router rules.
Personal dataA request with personal data is stored with its prompt withheld.
Semantic router offNothing new is recorded. The requests recorded before stay available to download or delete.
A failed recordThe appliance drops that record rather than slow the request.
Where records stayRecorded rows stay on the appliance. They are not a compliance audit log.