AI Explained · Episode 1
AI Tokens Explained in Hindi: Why Is a 5-Token Sentence 8 Tokens in Hindi?
What a token is, why Hindi uses more tokens than English, the strawberry bug, and why limits and cost are counted in tokens.
- AI Fundamentals
- Beginner
- 3 min read
- Video posted 30 Oct 2026
- Completed
Short mein: AI letters nahi padhta. Wo text ko chhote tukdon mein todta hai, jinhe tokens kehte hain. AI ki limit, speed aur bill, sab tokens mein gine jaate hain.
Token = AI ka Lego brick
Jab tum ChatGPT ko kuch likhte ho, to AI pehle us text ko bricks mein todta hai. Kabhi ek brick ek poora word hota hai, kabhi word ka hissa, kabhi sirf ek comma. AI ko letters nahi, numbers samajh aate hain, isliye har brick ko ek ID number milta hai. Text ko in bricks mein todne ko tokenization kehte hain.
Subwords kyun?
- Agar har letter ek token ho, to sequence bahut lambi ho jaayegi.
- Agar har word ek token ho, to vocabulary bahut badi ho jaayegi (har naya word, har spelling).
Isliye AI beech ka raasta chunta hai: subwords. Ye BPE (Byte Pair Encoding) se bante hain: sabse common jodi baar-baar judti hai, jab tak vocabulary ek tay size tak na pahunch jaaye. GPT-4o ke tokenizer mein lagbhag 2 lakh tokens hain.
Hindi mein zyada tokens kyun?
Ek hi sentence, alag-alag tokenizer par (tiktoken se gina gaya):
| Sentence | GPT-4o tokenizer | Purana GPT-4 tokenizer |
|---|---|---|
| AI makes life easier! | 5 | 5 |
| AI जीवन को आसान बनाता है! | 8 | 24 |
| AI jeevan ko aasan banata hai! (Roman) | 11 | 11 |
Wajah: tokenizer zyada tar English text se seekha hai. Aur Devanagari ka har character computer mein 3 bytes ka hota hai (English letter 1 byte ka), isliye kam-common Hindi words chhote tukdon mein toot jaate hain.
Do baatein yaad rakho:
- Har model ka apna tokenizer hota hai. Naye tokenizer par Hindi ka fark kaafi kam hua hai.
- Roman letters mein likhne se token nahi bachte (GPT-4o par is sentence mein Roman 11, Devanagari 8).
Strawberry wala bug
“strawberry” AI ko teen tukdon mein dikhta hai: st + raw + berry. Use letters ek-ek karke nahi dikhte, isliye “isme kitne r hain?” jaise sawal par AI galti kar sakta hai. Numbers bhi tootte hain: 1234567 = 123 + 456 + 7.
Space aur capital letter se bhi ID badal jaati hai: hello, hello (space ke saath), Hello aur HELLO, sab alag tokens hain. HELLO to do tukdon mein tootta hai: HEL + LO.
Tokens ke baad kya hota hai
- Har token ek vector banta hai: numbers ki ek lambi list. Milte-julte matlab waale words ke vectors paas-paas rehte hain.
- AI jawab “jaanta” nahi. Wo probability se agla token chunta hai. Temperature setting tay karti hai ki choice safe ho ya creative.
- Jawab ek-ek token karke banta hai, aur ek “end” token par rukta hai.
- API ka bill input aur output, dono tokens ka banta hai.
Ye tumhare kaam ka kaise hai
Limits aur cost tokens mein gine jaate hain. Isliye lamba prompt nahi, saaf prompt aksar behtar jawab deta hai. Video ke end mein formula tha: Role, Goal aur Output batao. Episode 5 mein yahi formula poora bana: Role, Context, Task, Format.
Ek line yaad rakho: AI words nahi, tokens padhta hai. Aur Hindi mein tokens zyada bante hain.
Try it: related prompts
-
Role, Context, Task, Format: the 4-Part Prompt Template
The fill-in template behind every prompt on the PROMPT sheet. Tell AI its role, your situation, the exact task and the shape of the answer.
- Prompt Engineering
- ChatGPT
- Any chat AI
- Beginner
Tum [ROLE] ho. [CONTEXT: main kaun hoon, situation kya hai]. [TASK: exactly kya chahiye]. [FORMAT: bullets, table, ya kitne words].
-
"Step by Step Socho": the One Line for Hard Math and Logic Questions
Bonus trick 2 from the PROMPT sheet. On a hard math or logic question, end your prompt with "Step by step socho."
- Prompt Engineering
- ChatGPT
- Any chat AI
- Beginner
Step by step socho.
Quick check: 3 questions
Samjha ya sirf padha? Answers sirf tumhe dikhte hain.