All jobs / AI engineer / LLM APIs

AI engineer interview question · 0–1 years

Your chat feature sends only the user’s newest message to the model API, and follow-up questions get confused replies. What is going on, and what do you change?

The strongest answer

Each API request stands alone — the model sees only what that request contains, so my code must send the earlier turns (or a stored-conversation reference, where the provider offers one) every time

Why it works

Exactly — the model holds nothing between calls. Whatever it should know, this request has to carry, which is also why long chats cost more per turn.

What a good answer covers

Answers that fall short

Who gets asked this

More LLM APIs questions