Interview Q&A / AI & Generative AI

INTERVIEW Q&A · 61 QUESTIONS

AI & Generative AI interview questions

LLMs, tokens, embeddings, RAG and prompt engineering, the questions every AI role now asks.

  1. What is chain-of-thought prompting, and when does it help?

    Chain-of-thought prompting asks the model to work through intermediate steps before giving the final answer. It tends to help on multi-step maths, logic and planning problems, but adds tokens, and the shown reasoning is not always a faithful account of how the answer was produced.

    IntermediateQuick answer1 min read
  2. What is self-consistency in prompting?

    Self-consistency samples several independent reasoning answers to the same question at a non-zero temperature and picks the most common final answer. It improves accuracy on reasoning tasks at the price of multiplying token cost and latency.

    AdvancedQuick answer1 min read