Interview question bank
Explain the mechanism and why it is useful before naming an equation. Answer aloud, then check the response.
What makes a language-model system an agent?
The surrounding runtime turns proposed actions into validated execution, returns observations, and lets later decisions depend on those observations. A generated claim alone changes no external state.
What belongs in a tool definition?
Its purpose, arguments, constraints, and result semantics. The model needs a usable contract, while the server independently enforces authorization and business rules.
Why is schema validity not task correctness?
A valid quantity can contradict the user’s request. Syntax and type checks establish only part of the contract; successful action requires the intended effect and an accurate final report.
Why are call IDs and operation keys different?
A call ID pairs a response with a request in the conversation. An operation key identifies one business action across retries, preventing an uncertain response from causing another write.
Why recheck stock when committing?
Availability can change after a read. The service must check the condition and perform the update atomically, rather than trusting a previously observed count.
What should context trimming preserve?
The facts needed for the next decision, especially completed writes and unresolved outcomes. A durable action record must survive even when the generation prompt uses a summary.
When does fine-tuning fit better than prompting?
When a stable repeated behavior still fails under a correct prompt and runtime, and checked demonstrations exist. Changing tool definitions still belong in the input; training creates an artifact to evaluate and maintain.
Why use LoRA?
It trains a small factored correction while keeping the original weights fixed. The restriction reduces trainable state, but the full decoder still executes and needs activation memory.
Why start one LoRA factor at zero?
The initial correction is zero, preserving the starting function. Keeping the other factor nonzero allows learning to begin; if both are zero, both initial gradient routes vanish.
Why apply loss only to assistant outputs?
The model should learn decisions and responses, while user requests and tool results supply context. Masking those roles out of the loss does not remove them from attention.
Why validate synthetic traces?
A generator can produce consistent-looking conversations with impossible actions or invented results. Execution or a declared simulator must verify the state transitions and causal order.
What does a successful final evaluation inspect?
The deployed model, template, runtime, tools, and final environment together. It includes no-action tasks, failures, recovery, and regressions, rather than grading only fluent answers or well-formed calls.
Exercises
One filled dot is a short explanation, two require diagnosis, and three require a system design. Draw the relevant mechanism before checking the solution.
E1. ●○○ Explain why a timeout after a reservation must not trigger an unconditional fresh write.
E2. ●○○ A call passes its schema but reserves the wrong amount. Where is the failure?
E3. ●●○ An adapter improves JSON validity while task success falls. Explain the next investigation.
E4. ●●○ Why is a paraphrased validation set insufficient evidence of generalization?
E5. ●●● Design a training trace for conditional stock reservation.
E6. ●●● Design deployment checks after merging and quantizing an adapter.
Worked solutions
Follow the reasoning, including the assumption that makes each answer valid.
E1. The service may have committed before its response was lost. Retry or query using the same operation identity to reconcile the outcome. A new key could reserve again.
E2. Compare the raw output, parsed arguments, authorization, and service effect. If the model chose the wrong amount and the runtime preserved it, the decision failed. If parsing changed the amount, the runtime failed instead.
E3. Evaluate syntax, selection, arguments, and final state separately. Inspect paired trajectories for regressions. A format-heavy dataset may teach serialization while weakening value extraction or conditional behavior.
E4. The new wording may describe the same memorized task and environment. Hold out meaningful axes such as quantities, tool combinations, or decision structure, and state which transfer the split actually tests.
E5. Start with the user’s authorized request, then a stock read, its identified result, the conditional reservation, and its commit receipt. End with a report grounded in that receipt. Include unavailable-stock and uncertain-commit variants. Serialize roles correctly and supervise assistant decisions without teaching invented observations.
E6. Compare merged and unmerged logits with dropout disabled, then save, reload, and check again. Treat quantization as a new approximation. Run the same task and regression suite through the actual runtime, checking final state, retries, templates, and stop behavior. Keep the original artifacts for rollback.