Interview Q&A / AI & Generative AI
AI & Generative AI interview questions
LLMs, tokens, embeddings, RAG and prompt engineering, the questions every AI role now asks.
Prefer rapid revision? Practise AI & Generative AI short interview answers →
- What does next-token prediction mean, and why does it produce fluent text?
The model reads the text so far and outputs a probability for every possible next token, picks one, appends it and repeats. Because it was trained on huge amounts of real text, the likely next token is usually grammatical and on topic.
BeginnerQuick answer1 min read - What is greedy decoding, and what is its weakness?
Greedy decoding always picks the single most probable next token. It is deterministic and fast, but it can produce repetitive or dull text and can miss better full sentences, because a locally best word may lead to a worse overall answer.
BeginnerQuick answer1 min read