Skip to main content

Why Bit, my site's assistant, doesn't use a language model

Everyone expects a chatbot on a portfolio to be powered by AI. I deliberately built mine without one. Here's the reasoning.

Vishwajit BhosleSoftware developer, Pune 4 min read
On this page

If you open the chat on this site you'll meet Bit, a small robot who answers questions about my work. Since it's 2026 and every site has a chatbot, most people assume there's a language model behind him. There isn't. I built him as a rule-based assistant on purpose, and I want to explain why, because it's one of the decisions I'm most sure about.

The problem with chatbots that guess

A language model will answer almost anything, fluently. That's the appeal and also the problem. Ask it something it doesn't know, like whether I've worked with a particular tool, and it may produce a confident, plausible, wrong answer. On a portfolio, that's the worst possible failure. A recruiter reads a made-up claim about my experience and takes it as true.

I'd rather have an assistant that says "I don't know" than one that says something nice and false about me.

How he works instead

Bit answers from the site's own published content: my projects, roles, skills, posts and so on, pulled from the same database as the pages you read. When you ask a question, he scores the content against your words using a classic text-search method (BM25), checks some hand-written rules for things like "are you available", "compare these two projects" or "tell me a joke", and replies with what the site actually says.

He handles typos, because people type badly on phones. He knows which page you're on, so "what's this project built with?" works. And he can do things, not just answer: scroll to a section, open a project, start the tour, copy my email.

If nothing in the content matches well enough, he says he doesn't know. That's the whole point.

The part I like best

Every question he couldn't answer shows up in my admin. So Bit doubles as feedback on what my site is missing. If five people ask about something I haven't written down, I can see that and fix it. A language model would have smoothed all of that over with a plausible reply, and I'd never have known the gap was there.

What I gave up

I'll be honest about the tradeoffs. He isn't conversational in the way a model is. He won't follow a long, winding chat or riff on a topic. If you phrase something in a way my rules and content don't cover, you get "I don't know" even when a human would have understood. Writing the rules took effort, and every new kind of question means more work.

There's also the cost side. Free hosting and a language model don't mix well, and I didn't want a site that quietly depended on a paid API or sent visitors' questions to a third party.

Security, a bit

One thing that surprised me: even a rule-based system has an attack surface. Text matching with regular expressions can be tricked into running for ages on carefully crafted input (the ReDoS problem), so there's a test that throws nasty input at him and makes sure he answers quickly. It's a reminder that "simple" doesn't mean "safe by default".

Where I might change my mind

If I could get a model to answer only from my content and refuse otherwise, reliably, I'd consider it as an extra layer. I'm not convinced that's solved yet. Until it is, a small honest robot beats a big confident one for something that speaks on my behalf.

He's also fun to build. He has a 3D body drawn with three.js, which moves and looks at things, and a flat fallback for devices that can't render it. But that's a different post.

Enjoyed this? Pass it on

Written by Vishwajit Bhosle

I build and lead web and mobile products from Pune, and write about what I run into along the way. If something here helped, or you have a project in mind, say hello.

Follow along

New posts show up in any feed reader the moment they are published: no account, no email, no tracking.

Open in Feedly

Comments

Anyone can comment, no sign-up. Upvote what helped, reply to anyone. I read all of them and reply where I can.

Loading comments…