Views
No views yet
[!IMPORTANT] A newer version of AlphaRoute is available!
Check out AlphaRoute-0.8B-v1.5, the latest iteration of the AlphaRoute family of models.
Key v1.5 Highlights:
- Banking77 Intent: 95.40% (+3.60% over v1.0)
- CLINC150 Multi-Domain: 94.00% (+18.80% over v1.0)
- HWU64 Zero-Shot: 89.96% (+6.04% over v1.0)
- Golden Enterprise 300: 97.67% (+8.34% over v1.0)
- Adversarial Out-of-Scope Rejection: 100.00% (vs 35.0% on v1.0)
- Fully mitigated false-rejection bias and supports advanced multi-target schema extraction.
| Benchmark Dataset | Domain Scope | JSON Valid % | Zero-Shot Accuracy (BF16 Baseline) |
|---|---|---|---|
Banking77 (official test) | 77 Fine-Grained Banking Intents | 100.0% | 91.80% |
CLINC150 (official test + OOS) | 150 Intents + Out-of-Scope Detection | 100.0% | 75.20% |
HWU64 (official test, 1,076 queries) | 64 Voice Assistant Intents | 100.0% | 83.92% |
Note on Benchmarks: Benchmark scores reported above are evaluated on the official test splits using the unquantized PyTorch BF16 reference model. Quantized variants (MLX 8-bit/4-bit, GGUF Q8_0/Q4_K_M) provide ultra-compact memory footprints and accelerated inference.
1{
2 "routing": {
3 "target_category": "iam_privilege_escalation",
4 "severity": "CRITICAL",
5 "out_of_scope": false
6 },
7 "extracted_entities": {
8 "compromised_identity": "admin-service-account",
9 "affected_resource": "arn:aws:iam::123456789:role/ProdAdmin",
10 "action_taken": "policy_attachment"
11 },
12 "recommended_actions": [
13 "revoke_active_session",
14 "quarantine_role"
15 ]
16}"out_of_scope": true and sets "intent": null, preventing hallucinated routing.- billing- billing: Inquiries regarding invoices, credit card charges, overbilling, refund requests, or payment disputes.1{
2 "intent": "billing | technical_support | account_security | null",
3 "out_of_scope": "boolean"
4}1EXAMPLES:
2Input: "Someone from Russia logged into our admin console"
3Output: {"intent": "account_security", "severity": "CRITICAL", "out_of_scope": false}
4
5Input: "Can you change my invoice address?"
6Output: {"intent": "billing", "severity": "LOW", "out_of_scope": false}1You are a precise semantic routing engine. Output only valid JSON.
2TASK:
3<High-level routing objective>
4
5CATEGORIES:
6- <category_name_1>: <semantic definition and trigger rules>
7- <category_name_2>: <semantic definition and trigger rules>
8
9OUTPUT SCHEMA:
10<JSON Schema with allowed literals>
11
12[OPTIONAL] EXAMPLES:
13Input: "<exemplar_query>"
14Output: <exemplar_json>
15
16INPUT:
17"<user_query>"
18
19JSON:1from mlx_lm import load, generate
2
3model, tokenizer = load("NamanAgnih0tri/AlphaRoute-0.8B-v1.0-MLX-8bit")
4
5prompt = '''You are a precise semantic routing engine. Output only valid JSON.
6TASK:
7Route infrastructure telemetry alert and extract parameters.
8CATEGORIES:
9- database_deadlock: Transaction lock contention and timeout.
10- crypto_mining: Unauthorized high CPU/GPU compute spike.
11OUTPUT SCHEMA:
12{"routing": {"target_category": "database_deadlock | crypto_mining | null", "severity": "CRITICAL | HIGH | LOW", "out_of_scope": "boolean"}, "telemetry": {"affected_cluster": "string or null", "metric": "string or null"}}
13INPUT:
14"PostgreSQL cluster 'orders-db' reports 180 active sessions blocked waiting on table lock."
15JSON:'''
16
17response = generate(model, tokenizer, prompt=prompt, max_tokens=100, verbose=False)
18print(response)