Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

AIRAG: chunk size and top-k

The chunk size

The returns desk cuts its policy into pieces and hands the model the best few. How big should a piece be, and how many should go in?

One page of the returns desk's policy is cut into pieces of N words, and seven questions each fetch their best few pieces into the window. The panels show which answers arrived whole, how many tokens the window paid, and how much of it was not the answer. Tiny pieces cut answers in two. Huge ones bury them.

Included with a plan

This lab is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

the lesson RAG (Retrieval-Augmented Generation)
The whole idea this lab came from, told start to finish.

on the path Module 2 of 9 in AI: From a model to an app
The lessons, boards and videos around this lab, in reading order.

Board: RAG

see also Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks in Papers.