Skip to main content

Command Palette

Search for a command to run...

Explain Tokenization to fresher

Published
2 min readView as Markdown
Explain Tokenization to fresher

In Generative AI, models like ChatGPT, Gemini don’t read text as letters or words like humans do.
They break it into chunks called tokens, which are just numbers the model can understand.

So, In digital world all is numbers, Computers work with numbers, not letters.

Imagine you are a tourist in a foreign country.
You meet a local who wants to help you — maybe show you around, tell you stories, or answer your questions.

There’s just one problem:

  • You don’t speak their language

  • They don’t speak yours

So, what do you do?
You get a translator.

This translator listens to your words, breaks them into small, understandable bits, and changes them into the local language so the person can understand.

This translator’s job is tokenization.

How Tokenization Works

Let’s say you tell:

India is a key player in the global digital economy.

The tokenizer turns it into:

India → 101

is → 09

a→ 86

key→ 512

player→ 123

in→ 034

the→ 378

global→ 111

digital→ 532

economy→ 628

The AI sees:

101, 09, 86, 512, 123, 034, 278, 111, 532, 628

Final Thought:

Tokenization is like having a tourist translator — it breaks your message into small pieces, translates them into a language the other side understands, and translates the reply back to you.

Happy Coding 💥

More from this blog

S

Santosh Kumar Vishwakarma

12 posts