✦ You'll only find this here. Ha ha.

Superhuman.
How AI really works.

Follow one chat message down the spiral, end to end: tokens, embeddings, attention, prediction, tool calls, and how an agent plugs into SaaS you already use. Every stage is interactive.

scroll to dive in
STAGE 01 · INPUT

You hit Enter

It starts with plain text. A system prompt (the app's hidden instructions), the conversation so far and your new message are packed into one long context.

STAGE 02 · TOKENIZATION

Words become numbers

The model never sees letters. A tokenizer splits text into sub-word tokens (about 4 characters each in English), and each token maps to an ID in a vocabulary of roughly 100k+ entries.

STAGE 03 · EMBEDDINGS

Numbers become meaning

Each token ID is looked up in a giant table and becomes a vector of thousands of numbers. Words with similar meanings end up close together in that space. The point cloud in 3D is a tiny taste. Position information is added so word order isn't lost.

STAGE 04 · TRANSFORMER

Every token looks at every other

Self-attention lets each token pull in context from the others: "invoices" attends to "overdue" and "billing". Dozens of stacked layers each refine the meaning. Tap a word to see what it attends to.

STAGE 05 · NEXT-TOKEN PREDICTION

One token at a time

The final layer outputs a score for every token in the vocabulary. Softmax turns the scores into probabilities and one token is sampled. Then the whole process repeats, once per token. Temperature controls the risk-taking. Try it:

temp0.80
The assistant's reply starts…
STAGE 06 · TOOL CALLING

The model asks; your app acts

The model can't touch your systems. It is given tool descriptions and replies with a structured tool call. Your app runs it, appends the result to the context, and the model continues. Loop this and you have an agent.

🧠 Model
📝 tool_call
⚙️ Your app
🌐 API
📥 Result
STAGE 07 · INTEGRATING EXISTING SAAS

Make any SaaS agent-ready

Wrap your existing APIs as tools, for example with an MCP server. Add per-tenant OAuth scopes, tenant isolation, human approval for risky actions, and audit logs. Your old product becomes an AI product without a rewrite. Tap a system:

STAGE 08 · STREAMING + GUARDRAILS

The answer streams back

Tokens stream to your screen as they're generated. In production, guardrails wrap the whole loop: grounding checks, PII redaction, policy filters, cost limits and logging.

grounded ✓PII redacted ✓approval ✓cost $0.004 ✓audit logged ✓
THE WHOLE BEAST

Text → tokens → vectors → attention × N → probabilities → token → (tools ↺) → answer

That's every chatbot, copilot and agent you've used, end to end. The hard part in production isn't the model; it's the engineering around it: context, tools, tenants, guardrails, cost and reliability. That's what we build at aitechvlab.

✦ Built from scratch. You'll only find this here. Ha ha.