RouteOps

Edge AI Gateway • MLOps Triage
FastAPI Connected
Supabase PostgreSQL Telemetry Feed (Live Synced)
API Docs GitHub
MLOps Gateway v0.1.0 Cost-Aware Multilingual Intent Classifier

RouteOps: Edge-Optimized Multilingual AI Gateway & MLOps Triage Engine

Classify incoming user queries in English, Romanized Nepali (ne-rom), and Devanagari (ne) into optimal LLM tiers. Save up to 94% on LLM inference costs with sub-15ms Int8 ONNX routing, sub-ms semantic caching, and automatic PII redaction.

Execution Pipeline Trace Idle • Awaiting Query
01 PII Redactor
Regex & Entropy
→
02 Semantic Cache
L2 Vector (0.05ms)
→
03 Int8 ONNX Router
4-Class DistilBERT
→
04 Tier Execution
Direct / RAG / Frontier

Query Triage Playground

Live Input

Visual Decision Inspector

Live Decision
Routed Class rag_retrieval
Target Tier rag_account_tier
Confidence 96.8%
Total Latency 11.4ms
Plain-English Routing Explanation FastAPI / ONNX

Classified as Domain RAG Retrieval. The query inquires about bank account balance verification in Romanized Nepali. Routed to the vector search index with lightweight LLM grounding, bypassing expensive frontier models.

PII Sanitization & Guardrail Check 1 Secret Redacted
Original Query Mero bank account 01234567890123 ko balance...
↳
Sanitized Query (Forwarded to LLM) Mero bank account [REDACTED_ACCOUNT] ko balance...
4-Class Probability Distribution mDeBERTa-v3 Int8 Softmax Distribution
rag_retrieval
96.8%
direct_response
2.1%
frontier_reasoning
0.9%
guardrail_blocked
0.2%
Cost & Unit Economics Receipt 90.0% Saved
RouteOps Execution Cost $0.000300 Tier: rag_account_tier
vs
Naive Frontier LLM Cost $0.003000 Claude 3.5 Sonnet / GPT-4o
Net Cost Saved (This Query) +$0.002700 Preserved Capital
Human-Readable Response 18 tokens

Mero bank account ko balance check garna mobile banking app ma login garnuhos, athawa najikko ATM machine ma gayera 'Balance Inquiry' chhanuhos.

Inspect Raw JSON Telemetry Payload
{
  "request_id": "ro-preview-init",
  "query": "Mero bank account 01234567890123 ko balance check garne tarika k ho?",
  "routed_class": "rag_retrieval",
  "confidence": 0.968,
  "routed_tier": "rag_account_tier",
  "latency_ms": 11.4,
  "cost_saved_usd": 0.0027
}

Integrate RouteOps in 3 Lines of Code

Drop RouteOps as a smart proxy in front of OpenAI, Anthropic, or Ollama to eliminate 60%+ of API spend.

import requests

# 1. Dispatch prompt to RouteOps Gateway
decision = requests.post("http://127.0.0.1:8000/v1/route", json={"query": prompt}).json()

# 2. Skip LLM entirely on cache-hit or guardrail block
if decision["is_cache_hit"] or decision["is_guardrail_triggered"]:
    return decision["response_text"]

# 3. Route sanitized prompt to target tier (SLM, RAG, or Frontier)
llm_client.execute(model=decision["routed_tier"], prompt=decision["redacted_query"])
import { routeQuery } from "@routeops/client";

// 1. Triage incoming user prompt
const decision = await routeQuery({ query: prompt, endpoint: "http://127.0.0.1:8000/v1/route" });

// 2. Immediate zero-cost return on cache hit or prompt injection
if (decision.is_cache_hit || decision.is_guardrail_triggered) {
  return decision.response_text;
}

// 3. Route to matched LLM engine using sanitized query
return llm[decision.routed_tier].generate(decision.redacted_query);
# Execute real-time query triage with SSE streaming
curl -X POST https://routeops-nine.vercel.app/v1/route \
  -H "Content-Type: application/json" \
  -d '{"query": "Mero bank account ko balance check garne tarika?", "language_hint": "ne-rom"}'

Zero Code Refactoring

Compatible with standard OpenAI client wrappers. RouteOps sits as an upstream inference proxy.

Built-in Nepanglish & Devanagari

Native tokenization handles Romanized Nepali code-mixing and Devanagari script seamlessly.

Instant Privacy Compliance

Phone numbers, account IDs, and API keys are redacted at the edge before hitting remote LLMs.

Interactive ROI Calculator & Drift Simulator

Model annual cloud infrastructure cost savings and simulate live concept drift across incoming request batches.

Enterprise Cost Savings Calculator

63.57% Net Cost Reduction
1,000,000 requests
10k 100k 1M 5M 10M
Naive Frontier Cost (Monthly) $3,000 100% routed to $0.003/1k tokens
RouteOps Cost (Monthly) $1,093 Cascaded Cache + SLM + RAG
Net Annual Savings $22,885 / yr Saved capital reinvested into engineering

PSI / JSD Concept Drift Wave Simulator

Distribution Stable

Simulate production query shifts between baseline training distribution and sudden bursts of technical or adversarial queries.

Population Stability Index (PSI) 0.038 < 0.10: Stable
Jensen-Shannon Divergence 0.019 < 0.05: Normal
Rolling Entropy Variance 0.104 < 0.20: Low

Verified Hardware & Model Benchmarks

Empirically benchmarked on Intel Core i5-12450H & NVIDIA RTX 2050 (4GB VRAM envelope).

Architectural Trade-Off Matrix

3.0 GB Strict VRAM Training Envelope
Model Architecture Artifact Size P95 Latency Throughput Macro F1 Memory Footprint Evaluation
TF-IDF + Logistic Regression 14.2 MB 2.41ms 412 QPS 0.862 15 MB RAM Lacks Semantic Context
PyTorch FP32 (DistilBERT) 268.4 MB 38.20ms 26 QPS 0.941 1.2 GB VRAM High Latency & Memory
ONNX Int8 Quantized (RouteOps) 68.1 MB (3.99x) 11.82ms 142 QPS 0.938 < 250 MB RAM Optimal Production Choice
CPU Processing
Intel Core i5-12450H
8 Cores / 12 Threads • 4 P-Cores dedicated to ONNX Runtime intra-op threads
Dedicated GPU
NVIDIA RTX 2050 Mobile
4096 MiB VRAM • Fine-tuning strictly constrained to 3.0 GB ceiling
Quantization Strategy
Int8 Dynamic Quantization
3.99x disk compression • Retains 99.7% of FP32 macro-F1 accuracy
Zero Cold-Start Guarantee
Deterministic Hybrid Client
Instant client-side inference fallback if cloud backend container is waking up