Aashar CK

Under the hood

How this site answers, and why it won't make things up.

Every answer on this site has an “Under the hood” panel with the retrieved chunks and their scores, each step, tokens, cost in cents and latency. This page explains what you are looking at.

01

One corpus

Every fact lives in content/*.md, one section per topic, each ending in a "Source:" line naming the CV, README or handoff note it came from. At build time the sections become 61 chunks and a BM25 index. The pages and the chat all read that one corpus.

02

Retrieval at $0

BM25 over the chunks, with headings weighted up and a small hand-written alias table (Claude ↔ LLM, Lambda ↔ serverless). No embedding API and no model download: at this size, lexical search is accurate, instant and explainable. Each hit also gets a coverage score: the idf-weighted share of the question's terms it covers. A term the corpus has never seen ("Kubernetes") weighs the most, so it can't be papered over.

03

Refuse before spending

If the best chunk covers less than 45% of the question, the chat replies "I don't have evidence for that" and never calls a model. The model's own instructions repeat the rule, and a grounding guard in code discards any answer that has no valid [n] citation.

04

Chat

OpenAI gpt-6-luna (the newest small OpenAI model, $0.10 / $0.50 per million tokens) at low reasoning effort, with the top 5 chunks as numbered sources and a 120-word limit. About $0.0005 an answer.

05

Guardrails

Questions up to 500 characters. Per network: 12 questions per 10 minutes. A hard daily budget of $0.50: each call reserves its worst-case cost in Redis before it runs and settles to the real cost after, so concurrent requests can't overshoot. Repeat questions are served from a cache at no cost. Live mode stays off unless both the API key and the shared Redis store are configured.

06

Mock mode

Without an API key the site runs in mock mode, labelled on every answer: extractive answers that quote the best sentence of each matching chunk. Retrieval, citation checks, refusals, rate limits and the trace are the same code as live mode.

07

Read the corpus yourself

All 12 documents and their sources →
The public eval: every case and every failure →
Try to break it →