See how AI actually works.

BitBanter teaches AI engineering to developers who want to understand AI, not just use it. We run every claim as an experiment, with real code and real numbers, then show you what happened.

Free. Hindi videos, English notes, code in Python and JavaScript.

BitBanter@bitbanteryt on YouTube
Subscribe

RAG from Zero, Ep 2

Full breakdowns on YouTubeDaily reels on Instagram

  • 11.9×smaller prompt with RAG than pasting every doc
  • $0.17per 1,000 DocBot answers on Claude Haiku
  • 4.7 µsto search 67 chunks with plain numpy
  • 91×faster with an HNSW index at 1M vectors
  • 181 of 300output tokens spent thinking before the answer got cut
  • 10 of 10runs refused to answer without RAG
  • 0.98cosine between INV-2041 and INV-2047
  • 0.19 vs 0.72Hinglish match, two embedding models

Every claim gets a run.

These are real DocBot experiments from the course, replayed one after another. Each bar is a number we measured, and each run links to the notes that explain it.

See the course

Real runs from DocBot

1 / 4

Stale document test

How many days do I have to ask for a refund?

cosine similarity, top 4 chunks

  • refund_policy_2025 (old, 30 days)0.565
  • refund_policy_2026 (current, 15 days)0.557
  • refund_policy_2026, how to request0.495
  • refund_policy_2025, how to request0.489

The old policy ranked first. Search worked. The index was wrong.

Episode 1 notes

Click around a real embedding space.

An embedding model turned 104 of DocBot's questions and handbook paragraphs into numbers. Similar meanings landed near each other, even across Hindi and English. Pick a question and see what it lands next to.

How long does a refund take?money backrefundI want my money backCan I cancel and get a refund?When will I get my refund?Please return my paymentpaisa wapas kab milega?mujhe refund chahiyepaise wapas kaise milenge?refund kitne din mein aata hai?galti se do baar paisa kat gayaHow many leaves do I get in a year?Can I carry forward unused leave?sick leave policychhutti kitni milti hai?maternity leave kitne hafte ki hai?How do I apply for leave?INV-2041INV-2047Show me invoice 2041Is invoice INV-2043 paid?invoice ka PDF kaise download karun?How do I send an invoice on WhatsApp?How much does the Growth plan cost?price of the Scale planStarter plan kitne ka hai?Do prices include GST?How much is an extra user?cheapest paid planWhat is the salary band for a senior engineer?internet allowance kitna hai?How do I claim travel expenses?What's the weather in Pune today?best biryani in HyderabadWho won the cricket match yesterday?How do I bake sourdough bread?billing_faq.md#1billing_faq.md#2billing_faq.md#3billing_faq.md#4billing_faq.md#5billing_faq.md#6employee_handbook.md#1employee_handbook.md#2employee_handbook.md#3employee_handbook.md#4employee_handbook.md#5employee_handbook.md#6hr_leave_policy.md#1hr_leave_policy.md#2hr_leave_policy.md#3hr_leave_policy.md#4hr_salary_bands.md#0hr_wfh_and_expenses.md#1hr_wfh_and_expenses.md#2hr_wfh_and_expenses.md#3incident_2026-03-14_payment-gateway.md#0incident_2026-03-14_payment-gateway.md#1incident_2026-03-14_payment-gateway.md#2incident_2026-03-14_payment-gateway.md#3incident_2026-08-02_search-outage.md#0incident_2026-08-02_search-outage.md#1incident_2026-08-02_search-outage.md#2incident_2026-08-02_search-outage.md#3invoice_INV-2040.md#0invoice_INV-2041.md#0invoice_INV-2042.md#0invoice_INV-2043.md#0invoice_INV-2044.md#0invoice_INV-2045.md#0invoice_INV-2046.md#0invoice_INV-2047.md#0invoice_INV-2048.md#0invoice_INV-2049.md#0job_application_ravi_kulkarni.md#1job_application_ravi_kulkarni.md#2job_application_ravi_kulkarni.md#3pricing.md#0pricing.md#0bpricing.md#0cproduct_manual.md#1product_manual.md#2product_manual.md#3product_manual.md#4product_manual.md#5refund_policy_2025.md#0refund_policy_2025.md#1refund_policy_2025.md#2refund_policy_2025.md#3refund_policy_2025.md#4refund_policy_2025.md#5refund_policy_2026.md#0refund_policy_2026.md#1refund_policy_2026.md#2refund_policy_2026.md#3refund_policy_2026.md#4refund_policy_2026.md#5release_notes.md#1release_notes.md#2release_notes.md#3support_sla.md#0support_sla.md#1support_sla.md#2

Try a question

    Nearest neighbours by cosine similarity on the full 3,072-number vectors, not the 2D picture.

    • Refunds
    • Leave
    • Invoices
    • Pricing
    • HR and pay
    • Product docs
    • Incidents
    • Off-topic
    • question
    • doc paragraph

    Our first course, in progress

    RAG from Zero

    We build one support bot, DocBot, and fix one real failure per episode. Point at an episode to see which part of the bot it covers.

    1. Questiona customer asks
    2. Searchfind the right paragraphs
    3. Slipsthe paragraphs we keep
    4. Modelthe LLM reads them
    5. Answergrounded, with sources

    Course overviewAll courses

    From the blog

    All posts

    How we make videos

    Tested, not told

    We run the experiment before we explain it. If the result disagrees with the hype, we say so.

    Simple words, real detail

    APIs, tokens, cost and code, explained so a beginner follows and a senior learns something.

    Notes you can keep

    Videos move fast. The notes keep the code in Python and JavaScript, the numbers and the sources.

    Questions people ask

    What is BitBanter?

    BitBanter teaches AI engineering to developers. Each video runs a real experiment with code and numbers, then explains what happened. Videos are on YouTube and Instagram; notes and code are on this site.

    Is BitBanter free?

    Yes. The videos, the course notes and the code are all free. There is no sign-up.

    What language are the videos in?

    The videos are in Hindi, mixed with English for technical terms. The notes on this site are in English, with code in Python and JavaScript.

    Where should I start?

    Start with RAG from Zero, a free course where we build one support bot, DocBot, and fix one real failure per episode. Episode 1 explains what RAG is; Episode 2 explains embeddings.

    What is the difference between the YouTube channel and the Instagram page?

    YouTube (@bitbanteryt) has the full breakdowns and course episodes, usually 5 to 7 minutes. Instagram (@bitbanter.ig) has short reels on AI tools, tests and tech news.

    Who is BitBanter for?

    Developers and computer science students who use AI tools and want to understand how they work: embeddings, RAG, agents, tokens and cost.

    A new experiment every week.

    Short reels on Instagram, full breakdowns on YouTube.