Layered Context Routing for Facilities PoC

Everyone figured AI for ops would mean giant models slurping vague tickets into black-box hell. This PoC flips it: simple layers of TF-IDF policy pulls, building metadata, and urgency heuristics route requests transparently on your laptop.

Layered Context Routing Tames Campus Chaos: A Laptop AI Experiment That Actually Works — theAIcatchup

Key Takeaways

  • Layered context (policy + place + urgency) makes AI routing debuggable and laptop-friendly.
  • TF-IDF + rules outshine black-box prompts for institutional nuance.
  • PoC hints at enterprise revival of inspectable systems, dodging hallucination risks.

Expectations were sky-high for AI in facilities management. Plug in a rambling ticket about a leaky roof and a jammed door—out pops the perfect work order. But reality? Models hallucinate rules, chase red herrings in emotional rants, and leave dispatchers guessing.

This CampusContextRouter-AI PoC changes the game. A solo dev’s experiment—code on GitHub—stacks context in inspectable layers: TF-IDF yanks policy snippets, JSON grounds building quirks, regex sniffs urgency from frantic text. Routes spit out priority buckets with SLAs. No cloud. No vectors. Just Python, scikit-learn, and logs you can actually read.

I combine TF-IDF retrieval over a small policy corpus with building metadata and lightweight urgency hints parsed from free text, then route tickets with explicit rules so every decision stays inspectable.

That’s the core quote. Blunt. Honest. And it works because ops language is a dumpster fire—“that hallway near the lab,” abbreviated building codes, stress-fueled shorthand. One prompt? Disaster. Layers? Debuggable sanity.

Why Does Messy Text Kill Single-Prompt AI?

Facilities tickets aren’t essays. They’re cries for help. Fume hood fails mid-experiment. Basketball court’s flooded before practice. Card reader ghosts you at 2 a.m. LLMs love fluency—hate institutional nuance.

Failure hits subtle: model picks wrong policy (safety trumps scheduling, always), or overweights the last whiney sentence. This PoC sidesteps with separation. Retrieval first: TF-IDF on a toy policy corpus (think fire codes, HVAC SLAs). Cosine sim scores snippets. Top hits attach—no magic embeddings.

Then place: JSON registry maps “Chem Bldg” to floor plans, vendors. Urgency? Heuristics parse “emergency,” “urgent,” time hints. Router—deterministic rules—combines ‘em into buckets: Critical (4hr SLA), High (day), Routine (week).

Batch a hundred synthetics? Rich tables glow in terminal. Matplotlib bars tally routes. See sparsity? Fix corpus. Policy clash? Tweak scores. That’s the win—iteration without prompt-tweaking voodoo.

But here’s my sharp take: this echoes 90s expert systems. Remember those brittle if-then trees for diagnostics? They crumbled under real variance. This? AI-powered but rule-bound where it counts. Unique insight—no one says it, but layered context like this could resurrect inspectable AI for enterprises terrified of black boxes. Regulated ops (healthcare, campuses) crave audit trails. Monolithic prompts? Lawsuit bait. Prediction: by 2025, 30% of enterprise RAG stacks clone this laptop simplicity, dodging vector DB bills.

Is CampusContextRouter Ready for Real Desks?

Short answer—no. It’s a PoC, screams the author. Tiny corpus (synthetic policies, no real SLAs). Linear scoring ignores policy hierarchies. Regex urgency misses sarcasm (“this is fine” amid fire?). Retrieval sparsity on rare terms—fume hoods evade unless indexed right.

Yet market dynamics scream potential. Facilities software’s a $50B slog—ServiceNow, UpKeep dominate with rigid forms users hate. AI promises smarts; delivers garbage-in-garbage-out. This stacks signals modularly, survives “maintenance engineers who don’t care about ML buzzwords.”

Look, corporates hype agentic AI—swarms of LLMs orchestrating chaos. Bull. This deterministic router’s cheaper, safer. Scales? Swap TF-IDF for FAISS (still local). Beef corpus via scraping public manuals. Urgency to classifiers. Boom—prototype to prod in weeks.

Corporate spin check: author disclaims employer ties, production use. Smart—avoids IP traps. But the repo’s public for learning. Fork it. Stress-test your own tickets.

And the stack? Boring gold. Python 3.10+, NumPy, scikit-learn, matplotlib, Rich. Fits laptop RAM. No AWS bills. In a world of $0.01/query gouges, that’s rebellion.

Failure modes get airtime—good. Policy conflicts (safety vs. budget)? Log ‘em, escalate. Vague places? Fallback to general queue. Next steps: metrics like route accuracy vs. human dispatchers, A/B on real(ish) data.

Why This Matters for Devs Building Ops Tools

Devs, you’re the ones gluing this. Single prompts scale to toys, not tickets. Context engineering—author’s term: segregate info types, serialize predictably—mirrors microservices for AI. Evidence (retrieval). Grounding (place). Modulation (urgency). Router consumes.

It beats RAG hype. No undifferentiated string blob. Logs scream why a ticket landed in Critical: policy X (0.8 sim), Building Y (lab wing), “flooding now” (high urgency). Debug? grep the JSON.

Bold call: if you’re in proptech or edtech, benchmark this against your GPT wrapper. Bet it wins on cost (zero inference fees) and trust (no hallucinations in routing).

Wander a bit—I’ve routed my own home fixes this way. Leaky faucet? Pulled DIY policy, zoned kitchen, urgent (dinner ruined). Worked.


🧬 Related Insights

Frequently Asked Questions

What is layered context routing?

Stacking distinct signals—policy retrieval, place metadata, urgency parses—into a rule-based router for inspectable AI decisions on messy inputs like facilities tickets.

Can I run CampusContextRouter-AI on my laptop?

Yes—Python basics, no cloud. Clone the repo, pip install deps, batch your synthetics.

Does this beat full LLM agents for ops?

For routing? Often. Cheaper, transparent, survives stress-text better than prompt soups.

Priya Sundaram
Written by

Hardware and infrastructure reporter. Tracks GPU wars, chip design, and the compute economy.

Frequently asked questions

What is layered context routing?
Stacking distinct signals—policy retrieval, place metadata, urgency parses—into a rule-based router for inspectable AI decisions on messy inputs like facilities tickets.
Can I run CampusContextRouter-AI on my laptop?
Yes—Python basics, no cloud. Clone the repo, pip install deps, batch your synthetics.
Does this beat full LLM agents for ops?
For routing? Often. Cheaper, transparent, survives stress-text better than prompt soups.

Worth sharing?

Get the best AI stories of the week in your inbox — no noise, no spam.

Originally reported by dev.to

Stay in the loop

The week's most important stories from theAIcatchup, delivered once a week.