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 is prompt engineering, and what makes a good prompt?
Prompt engineering is writing and testing the input to an LLM so it reliably produces the output you need. Good prompts give clear instructions and context, show a few examples when the format matters, and ask for a specific output structure.
BeginnerIn-depth3 min read - Which sampling settings would you use for JSON extraction versus brainstorming taglines?
For JSON extraction use low temperature, near zero, so output is stable and format errors are rare. For brainstorming use a higher temperature, with perhaps a moderate top-p, so the model offers varied options. Always validate structured output.
BeginnerQuick answer1 min read