DEPLOYEDAI-era interview training
RankBootstrapping
XP 0 / 250
0
0%
Ready
Interview questions · LLM Interview Questions & Answers

LLM Interview Questions & Answers

LLM fundamentals are table stakes for any AI-engineering interview. Know how models actually work — tokens, embeddings, context, sampling, and training.

Practice these free — flashcards, retrieval checks & a timed mock interview.▸ Open the Applied AI / Forward Deployed Engineer trainer

Key concepts to know

Interview questions & answers

Fundamentally, what is a language model computing at each step?

A probability distribution over the next token given the preceding tokens.

Why: At each step it outputs a distribution over the next token. Sampling from that distribution (repeatedly) produces text. It's not a lookup or a guaranteed-correct oracle — hence hallucinations.

Two sentences have an embedding cosine similarity of 0.92. What does that imply?

They are semantically very similar in meaning.

Why: High cosine similarity ≈ close in meaning-space, i.e. semantically similar — even if the wording differs. It says nothing about identical grammar/tokens or fine-tuning.

Where should you place the single most important instruction in a very long prompt?

At the beginning or the end, because models attend best to the edges (lost-in-the-middle).

Why: The lost-in-the-middle effect means edge positions get the most reliable attention. Critical instructions belong at the start or end of a long context.

You need consistent JSON extraction from documents. Best setting?

Temperature ~0, request structured output, validate against a schema, retry on failure.

Why: Extraction wants low variance: temperature ~0, structured output, and schema validation with retries — because even temp 0 isn't perfectly deterministic.

A model confidently makes up facts about your company's internal policy. The best fix is usually:

Ground it with retrieval (RAG) or a tool that fetches the real policy, and instruct it to only answer from provided context.

Why: Private/fresh knowledge isn't in pretraining. Retrieval or tools supply the facts; instructing 'answer only from context' curbs hallucination. Retraining/fine-tuning on web data won't add your private policy.

Go deeperPractice the full track in the free interactive trainer — spaced-repetition flashcards, retrieval checks and timed mock interviews.

Related topics