{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "jaredpalmer-kev--serve-kev-for-ticket-routing",
 "repo": "jaredpalmer/kev",
 "repo_url": "https://github.com/jaredpalmer/kev",
 "repo_slug": "jaredpalmer-kev",
 "title": "Serve a local decision model that routes support tickets",
 "page_title": "How to serve a local decision model that routes support tickets with Kev",
 "summary": "Run Kev-4B locally and send a ticket with department, escalate and frustration questions in one request.",
 "who": "A support engineer who wants routing and escalation decisions without per-call API costs.",
 "problem": "Chat models give free text that needs parsing and their confidence is not calibrated.",
 "outcome": "Structured answers with calibrated probabilities, such as returns, a 0.93 escalate probability and a frustration score.",
 "steps": [
  "Run `git clone https://github.com/jaredpalmer/kev.git && cd kev`",
  "Install the server extras with `uv sync --extra serve`",
  "Start the server: `uv run --extra serve python -m kev.serve --run jaredpalmer/kev-4b --port 8009`",
  "POST a ticket with choice, noul and score questions to localhost:8009/v1/systemone as in the README curl example",
  "Route tickets by the returned probabilities and thresholds you choose"
 ],
 "agent_prompt": "Set up jaredpalmer/kev with Kev-4B on port 8009, then write a script that sends each ticket in <file> with a department choice, an escalate noul and a frustration score, and writes the answers and probabilities to a CSV.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "Do not pip install Kev: that name on PyPI is an unrelated ORM. Install from source as shown.",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "python",
 "requirements": [
  "Python with uv; install from source (pip install kev is a different package)",
  "A GPU (CUDA) or an Apple Silicon Mac with MLX; Kev-0.8B runs on a laptop",
  "Optional: a Modal account for fine-tuning and hosted endpoints"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/jaredpalmer-kev/serve-kev-for-ticket-routing/",
 "md": "https://dedupedai.com/use-cases/jaredpalmer-kev/serve-kev-for-ticket-routing/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/jaredpalmer-kev--serve-kev-for-ticket-routing.json",
 "api_version": "v1"
}
