Index Ai Academy
Glossary · Phase 6 · Modern LLM engineering

Best-of-n sampling

Also written: best-of-n

Generating several answers and keeping the one a reward model scores highest. Simple and strong, but it costs n generations per question.

Learn it properly

RLHF · Reward models and reinforcement learning from human feedback. About 40 minutes.

Open the lesson Create a free account

Other terms from the same lesson