drkn.dev

Sep 10, 2026

Sample - Typed judgments instead of chatbots

How a yes/no probability and a single choice can replace a prompt-and-parse step when routing a visitor's question.

This is a placeholder post. Replace it with your own writing in src/content/blog/.

Most “AI search” boxes generate an answer. This site’s ask box does not. It asks a model a set of narrow questions about the visitor’s query and lets plain code decide what to show.

The judgments

  • One yes/no: is this a genuine question about my work?
  • One choice: which section of the site answers it best?
  • One yes/no per item: is this project, role, technology or post relevant?

Why it holds up

The model never writes text, so prompt injection can at worst surface an irrelevant link. If the model is slow or unavailable, a keyword match over the same catalog takes over.

  • ai
  • typesafe
  • jev
All posts