Combine a third-party data API with an LLM API for retrieval, then debug it
MediumSystem design35 minSWEMLEPro outline
The question
In a pair session you combine a third-party search or data API with a hosted LLM API: fetch documents for a user query, embed or rank them, and have the model answer from them.
The first version returns empty or wrong answers about a third of the time. How do you build it, and how do you debug it with your partner?
What the interviewer is looking for
- Reads API docs for pagination, limits and error formats before coding
- Logs each stage so the failing stage can be found
- Handles timeouts, rate limits and empty results explicitly
- Checks the prompt actually contains the retrieved text
- Talks through steps clearly with the partner
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported Mistral AI question type: Combining a third-party API with the Mistral API for retrieval.
Reported in: supacv.com
Practice question written by BlogLLM based on publicly reported interview formats. Not an official Mistral AI question.