How ebubekirylmaz/routeiq works
RouteIQ turns incoming text into a cost-aware decision: a fast classifier accepts confident predictions, uncertain ones escalate to an LLM, and unresolved requests enter human review before delivery to a configured target. The API also exposes operational history, delivery status, statistics, and offline evaluation to the dashboard. The graph includes the documented dashboard and integrations, but their unsampled implementation links are omitted or marked unverified; sampled API and dashboard calls anchor the relationships shown.
Main entry points: api.py HTTP API · endpoints.ts API endpoints · registry.py Model registry · ReviewQueuePage.tsx Review queue UI
Components 24
Routing service
- HTTP API
routeiq/api.py - Domain config
routeiq/config.py - Confidence cascade
routeiq/cascade.py - API schemas
routeiq/schemas.py - Response views
routeiq/views.py - Text redaction
routeiq/redact.py
Classification
- Model registry
routeiq/models/registry.py - Sklearn classifier
routeiq/models/sklearn_baseline.py - OpenRouter classifier
routeiq/models/openrouter.py
Operations and evaluation
- Human review queue
routeiq/api.py - Metrics store
routeiq/store.py - Offline evaluation
routeiq/evaluation.py - Evaluation runner
routeiq/evaluate.py
Delivery adapters
- Delivery dispatcher
routeiq/delivery.py - Target adapters
routeiq/integrations
Dashboard
- Dashboard routes
dashboard/src/App.tsx - Review queue UI
dashboard/src/pages/ReviewQueuePage.tsx - Review data hooks
dashboard/src/hooks/useReviewQueue.ts - Decision mutation
dashboard/src/hooks/useResolveReview.ts - API endpoints
dashboard/src/api/endpoints.ts - HTTP client
dashboard/src/api/client.ts - Try text UI
dashboard/src/pages/TryItPage.tsx - Insights and history
dashboard/src/pages
Other components
- Request client
Connections 25
- Request client → HTTP API: submits text
README.md - HTTP API → Domain config: loads settings
routeiq/api.py - HTTP API → Model registry: builds classifiers
routeiq/api.py - Model registry → Sklearn classifier: constructs
routeiq/models/registry.py - Model registry → OpenRouter classifier: constructs
routeiq/models/registry.py - HTTP API → Confidence cascade: routes request
routeiq/api.py - HTTP API → Metrics store: records outcomes
routeiq/api.py - HTTP API → Delivery dispatcher: schedules delivery
routeiq/api.py - Delivery dispatcher → Target adapters: dispatches target
- HTTP API → API schemas: validates and returns
routeiq/api.py - HTTP API → Response views: formats responses
routeiq/api.py - Response views → Text redaction: redacts text
routeiq/views.py - HTTP API → Human review queue: serves decisions
routeiq/api.py - HTTP API → Offline evaluation: serves metrics
routeiq/api.py - Offline evaluation → Evaluation runner: uses measurements
routeiq/evaluation.py - Dashboard routes → Review queue UI: routes to
dashboard/src/App.tsx - Review queue UI → Review data hooks: loads queue
dashboard/src/pages/ReviewQueuePage.tsx - Review queue UI → Decision mutation: submits decision
dashboard/src/pages/ReviewQueuePage.tsx - Review data hooks → API endpoints: requests queue
dashboard/src/hooks/useReviewQueue.ts - Decision mutation → API endpoints: posts decision
dashboard/src/hooks/useResolveReview.ts - API endpoints → HTTP client: sends HTTP
dashboard/src/api/endpoints.ts - Try text UI → API endpoints: routes text
dashboard/src/pages/TryItPage.tsx - Dashboard routes → Insights and history: routes insights
dashboard/src/App.tsx - HTTP API → Metrics store: reads operational data
routeiq/api.py - API endpoints → HTTP API: calls API
README.md