An assistant that is not allowed to make things up

Pinning a site assistant to a closed fact set, and two production traps: silent fallback that looks healthy, and one rate-limited route taking down every reply.

This site has a Q&A assistant. The hard part was never wiring an API — it was making sure it can only say what this site already says. An assistant on a personal site is speaking as my record, and a record that improvises is worse than no record.

Facts are a closed set

The assistant's instructions pin it to the facts published on these pages, and — the part that does the real work — forbid combining them into new claims. It may not attach a focus area to an employer, guess a date, or synthesize a title that no page states. Asked for something outside the set, the correct answer is "that is not on this site," plus a link to the nearest page that is.

This sounds restrictive. It is the point. Recruiters and professors check details; one hallucinated "fact" costs more credibility than a hundred correct answers earn.

The silent-degradation trap

The embarrassing lesson: for a while the deployed assistant was answering from its built-in fallback script while looking perfectly healthy. The config pointed at an endpoint with both model ids left blank, and the provider call returns early on a blank model — so every reply quietly fell back to canned text. No error, no log line, a green status page, and a "working" widget that had never reached a model.

The fix was boring and unglamorous: connect it to my self-hosted LLM router with the site's own client profile, and treat silent fallback as the bug — degradation is allowed, invisibility is not. A failure that produces a plausible reply is far more dangerous than one that produces an error.

Surviving rate limits with a fallback route

One more failure mode surfaced in production: a named model on the router maps to specific routes, so a single rate-limited route degraded every reply back to the canned script — same symptom as being disconnected. The assistant now makes a second attempt on a router-level automatic route when the first model is rate-limited. Slower on bad days, but it answers with a model instead of a script.

What transfers

  • Ground the assistant in a closed fact set and prohibit recombination. Retrieval scope is a safety property, not a quality knob.
  • Make degradation loud. Any fallback path that can pass as normal output will eventually run for weeks unnoticed.
  • Design for the provider's bad day. Rate limits are routine weather; a reply path that survives them is part of the product, not an optimization.