Agentic LLM router that sends each request to a LoRA-tuned small model or a larger one by confidence, cutting cost and latency without losing quality. LangGraph, RAG, CNN, Groq and Gemini, with PII an
ModelRoute: Smaller Models. Bigger Impact. AI Project 5 by Nikhil Chary Sriramoju (GitHub · LinkedIn)
A working LLM routing system. A trained classifier predicts whether a support request needs a large model; easy requests go to a small, cheap model and hard ones to a larger one. Answers are grounded with RAG, near-duplicates are cached, PII and prompt injection are guarded, weak answers escalate, and every request is logged so cost, latency and fallback rate are measured, not guessed.
Quick start (about 2 minutes, no API keys needed)
Open http://localhost:8000 for the site wired to the live API, or /docs for the OpenAPI page. For real answers, copy .env.example to .env, add free Groq and Gemini keys and drop LLMMODE=mock. Without keys the responses are labelled provider: mock (extractive answers from the knowledge base).
How a request flows guard (injection block, PII redaction) → semantic cache → RAG (TF-IDF over kb/) → router (p(small is enough) vs per-mode threshold) → LLM (Groq 8B or Gemini, with failover and circuit breaker) → judge (weak answer escalates to the large model) → human review queue for uncertain cases → SQLite log. Each response includes a trace of these steps.
API Endpoint Purpose ------ POST /route {text, mode: fastcostquality, visualcomplexity?} returns answer, model, provider, cost, trace GET /stats Real request count, cost saving vs always-large, latency, fallback and cache rates GET /review, POST /feedback Human-in-the-loop queue and ratings GET /health, GET /config Status, modes and prices
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/Nikhil-creat--modelroute.html)
Agentic multi-cloud FinOps, security auto-remediation and AI observability platform. FastAPI + LangGraph agent swarm, corrective RAG (Qdrant), PyTorch CNN anomaly detection, Groq + Gemini LLM gateway,
Nikhil-creat/deepoptimaAutonomous neural architecture search (NAS) platform: NSGA-II evolution of CNN/ViT designs, distributed GPU worker mesh, agentic Groq + Gemini swarm, MCP server, Wasm sandbox, mTLS. FastAPI + PyTorch
Nikhil-creat/cloudpulsAI workspace on Cloudflare Workers: build and publish apps from a prompt, generate and edit images, research with sources, compare Groq and Gemini with live streaming, end-to-end encrypted sync, tasks
SujalXplores/Agent-KCode-enforced incident-response agent that investigates SigNoz alerts, publishes evidence-backed root-cause claims, and gates every action behind a safety policy. Built for Agents of SigNoz hackathon.
burhan-mujahid/precedentTurn how your team already works into rules your AI agents follow - mined from team chat, approved by a person, enforced by deterministic gates, kept true by evals and drift checks.
java-ai-in-action/framework-compareSpring AI vs LangChain4j vs SAA 三框架同台对比(配套篇2)
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.