Ask the runbook

Ask about my work. Get cited answers.

The assistant answers only from this site: case studies, project write-ups and the résumé. Every answer cites its sources. If it can’t ground an answer, it says so.

Grounded only in this site’s public content · cites sources · refuses the rest · see evals

How it works

Small, boring, and measured.

  1. 01

    Build-time corpus

    Each deploy chunks the site’s content into a versioned corpus.json.

  2. 02

    BM25 retrieval

    A dependency-free BM25 index runs at the edge in a Cloudflare Worker. The same code powers the in-browser fallback.

  3. 03

    Guardrails

    Low-relevance questions are refused before any model call. Prompt-injection patterns are filtered, and context is delimited.

  4. 04

    Grounded generation

    An open model on Workers AI answers from the retrieved chunks only. Citations are checked against what was retrieved.

  5. 05

    Graceful degradation

    On quota or model errors it falls back to retrieval-only answers. The site never breaks because a model did.

  6. 06

    Public evals

    Retrieval quality and refusal behaviour are measured on every build. See the numbers →

Request flow: the browser posts a question to the Cloudflare Worker, which applies the origin check, rate limit and injection filter, retrieves from the BM25 index built from corpus.json, refuses below the relevance threshold, otherwise calls Workers AI with delimited context, validates citations and returns the answer, falling back to retrieval-only on errors.Request flow: the browser posts a question to the Cloudflare Worker, which applies the origin check, rate limit and injection filter, retrieves from the BM25 index built from corpus.json, refuses below the relevance threshold, otherwise calls Workers AI with delimited context, validates citations and returns the answer, falling back to retrieval-only on errors.
fig. Request flow: the browser posts a question to the Cloudflare Worker, which applies the origin check, rate limit and injection filter, retrieves from the BM25 index built from corpus.json, refuses below the relevance threshold, otherwise calls Workers AI with delimited context, validates citations and returns the answer, falling back to retrieval-only on errors.Scroll sideways or open full size.
esc
↑↓ navigate ↵ opentry whoami or sudo hire rakshith