test questions
50
model answers verified
40/43
private details leaked
0
attack cases
28
model spend so far
£0

The assistant on this site answers questions about my work: where I have worked, what I have built, what I write about. A recruiter asking "what does he do at Locus Robotics?" should get a straight answer with a link to the source.

The risk with any chatbot like this is obvious. A language model that invents a job title, a client or a result does more harm than no assistant at all. So I set one rule before writing any code: every factual sentence it shows must be traceable to something I have already published and reviewed. Everything below follows from that rule.

How it works

The site runs on Cloudflare Workers. A question goes through six stages before anything reaches the screen.

  1. A reviewed knowledge index, nothing else. At build time the site's own content (career history, projects, articles, photograph captions) is turned into 31 short entries. Each one carries a fingerprint of its text, and only entries I have approved by that fingerprint are used. If I edit a page, its entry drops out until I review it again. The assistant never reads private files, drafts or repositories.
  2. Retrieval. The question, plus recent questions in the same conversation, picks at most five entries, capped at 9,500 characters in total.
  3. The model. Cloudflare Workers AI runs Llama 3.3 70B. It gets the retrieved entries and the question, must reply in a fixed JSON format, and is limited to 700 output tokens. It has no tools, no web access and nothing it can write to.
  4. Verification. Every claim in the reply has to be a complete, word-for-word excerpt from exactly one of the retrieved entries. The server checks that, then attaches its own link to the source. The model cannot supply a URL. If it says something is not covered, the visitor sees a fixed "not available" line instead of whatever the model wrote.
  5. Abuse and spending limits. Each question needs a Cloudflare Turnstile token, checked on the server before any model call. Each visitor gets 4 questions a minute and 20 a day, one at a time. The whole site allows 150 model questions a day and 4 at once. A SQLite Durable Object keeps a ledger: it reserves the worst-case cost before each call, settles the real cost afterwards, and stops the assistant when the monthly allowance is used. If the price list passes its review date, the assistant switches itself off rather than guess.
  6. Privacy. Conversations live only in the open chat window and are never stored. The limits use a keyed, daily-changing code derived from the visitor's IP address, not the address itself, and those records expire after 26 hours.
The limits, all enforced in code.
BoundaryLimit
Question length2,000 characters; eight previous messages
Context sent to the modelUp to five reviewed entries, 9,500 characters
Model output700 tokens, at most five claims
Per visitor4 a minute, 20 a day, one at a time
Whole site150 model questions a day, 4 at once
Time11 seconds per model attempt, 25 seconds in total

Why excerpts, not natural answers

The obvious alternative is to let the model write freely and check that each sentence cites a real source. I tested that idea against a counterexample before rejecting it: a fabricated claim that I increased revenue by 400%, attached to the genuine source ID of my career history. A citation-only check accepts it, because the ID is real. The excerpt check rejects it, because those words are not in the source.

Correct source IDs, and even correct supporting quotes, do not prove that a paraphrase is true. Until I have a verifier that can prove that, answers stay as quotations. The cost is that they read less like conversation and more like a well-sourced summary. For a site that recruiters use to check facts, that is the right trade.

How I tested it

A 50-question suite. 26 factual questions (employers, migrations, monitoring, qualifications, projects, photographs) and 24 adversarial ones: prompt injection, requests for invented achievements and salary, forged citations, and questions about current travel prices the site cannot know. Each question has gold source IDs and notes on the expected boundary.

Retrieval, offline. For all 21 questions that have a correct source, that source was in the top five results.

The live model, 29 November 2026. I sent the exact production request for all 50 questions to Workers AI and ran every reply through the same verification code the live site uses. Seven questions needed no model call, because nothing relevant could be retrieved and the fixed answer applies.

Live model evaluation on 43 questions that needed the model.

RunPassed verificationRejected
First run36 of 437
After one fix40 of 43 (93%)3

The fix: in the first run, four replies were rejected because a "not covered" claim carried a stray source ID. Those claims are always replaced by the fixed message and never show a source, so the check now drops the ID. Supported claims were not relaxed in any way. The three remaining rejections are replies where the model reworded part of a sentence instead of quoting it, which is exactly what the check exists to catch.

Every answer was then read against its gold notes. No secret, configuration, private detail, HTML or external link appeared, and no invented employer, result or technology. Injection attempts got either the fixed "not available" line or genuine career history.

Attack cases and the real runtime. A separate set of 28 synthetic attack cases checks the boundaries, including hostile instructions planted in published content, which the review fingerprints keep out of the index. Eighteen more checks run in Cloudflare's actual Workers runtime: the budget holds across concurrent requests and survives a restart, the per-minute limit holds against spoofed forwarding headers, and a storage outage stops the model from starting.

On launch day I asked it a question from my phone; it answered with its sources.

What it costs

The 43 model questions used about 28,400 input and 3,400 output tokens: roughly 1,450 of Cloudflare's "Neurons", or 34 a question. Workers AI includes 10,000 Neurons a day at no charge, which covers about 290 questions a day, almost double the site's own daily cap. On Cloudflare's free plan the service stops at that allowance instead of billing. Actual model spend so far: £0.

The ledger still charges every call at Workers AI's published list price, $0.293 per million input tokens and $2.253 per million output tokens, multiplied by 1.25 to allow for exchange rates and tax, against a £2 monthly allowance. If the model or the plan ever changes, the spending protection is already in place.

Where it falls short

  • Quotations are not conversation. Answers can feel stiff, and sometimes add a loosely related true sentence, or mix an answer with a "not available" line.
  • Verified wording is not verified relevance. The check proves a sentence is mine; it does not prove it answers the question.
  • About 7% of model replies fail verification. A backup model, Claude Haiku, is built and tested with fixtures but not switched on, so for now those visitors get an honest error message instead of an answer.
  • It is only as good as the content. Where a project page says little, so does the assistant.
  • The limits are per IP address. People on a shared network share an allowance, origin checks are not authentication, and a distributed attack could use up the free daily allowance. That makes the assistant unavailable for the day; it cannot make it cost more.
  • 50 questions is a test suite, not a benchmark. It catches regressions and known attacks; it does not measure how useful real visitors find the answers.

What I learned

  • Decide what the model must never do, then build that first. The verifier, the knowledge review and the ledger took more work than the prompt, and they are what make it safe to leave running in public.
  • A counterexample beats an argument. The 400% test settled the design question in minutes.
  • Free tiers are a feature to design around. A hard daily stop is a better spending control than an alert.

Ask the assistant something yourself: the "Ask about the site" button is at the top of every page.