In-browser AI

An assistant that answers questions about my background, in the browser

Why this site’s assistant answers first with sourced facts, and only then, if the visitor asks for it, with a language model running on their device.

By 14 November 20263 min read
My role
Design and direction
Period
November 2026
Project type
Personal project

In short

The site assistant answers questions about my background in French and English. It first searches a base of written answers, each linked to a page of the site. Optionally, a language model runs in the browser with WebLLM and WebGPU to write the answer from those same facts. Questions never leave the device.

The problem

A recruiter has precise questions: current role, languages, mobility, results. A conversational assistant answers them faster than browsing forty pages.

The risk is well known: a language model, especially a small one, easily invents a date or a figure. On a career history, an invented answer is worse than no answer.

The technical reasoning

  1. Answer with facts first. The base holds about thirty written questions and answers, in two languages. A weighted keyword search finds the closest ones and shows the link to the source page.
  2. Do not answer when nothing matches. Below a relevance threshold, the assistant says it does not have the information and suggests contacting me. The model is not called.
  3. The model writes, it does not decide the facts. When local mode is on, the model receives the retrieved facts and the instruction to stick to them, without inventing a figure, a date or an employer.
  4. Download only on request. A model weighs several hundred megabytes. Nothing is downloaded until the visitor clicks.
  5. Stay in the browser. With WebLLM and WebGPU, generation happens on the device. The model is downloaded from Hugging Face. The questions themselves are sent nowhere.
  6. Plan for when it does not work. Without WebGPU, or if the model fails to load, the assistant stays usable with sourced answers.

What was built

  • A bilingual fact base, where each answer restates information published on the site.
  • A local search and a chat interface, with no external service.
  • An optional local mode with two model sizes, switched on by the visitor.

Checks and limits

Even when constrained, a small model can rephrase badly. That is why every answer shows its sources and states whether it comes from the written facts or from the model.

Local mode needs a recent browser with WebGPU and a sufficiently powerful device. I publish no usage statistics for the assistant.

What next?

This study sets out a line of reasoning. The project page shows the result, and the other studies follow the same reading grid.

The next step

Your next challenge.
My next playground.

Let’s talk

Explore the site

View related project ↗Open video file ↗