← Questions
Improve a chatbot's answers to questions it doesn't know
0
I was asked this
No reports yet. Sign in to say where you were asked it.
An AI system design interview question asked in OpenAI's technical screen (system design), last asked Dec 2025. It tests llm, retrieval and chatbots.
Users of a ChatGPT-style assistant sometimes ask things the model cannot answer reliably: facts it never saw, events after its training data, or personal questions about their own work it has no context for. Design the system that notices these cases and still helps the user, without making things up.
Requirements
- Functional: decide per query whether to answer directly, ask a clarifying question, retrieve sources or call a tool, or decline. Factual answers carry citations. Personal or workflow questions get a clarifying question instead of a guess. Say plainly when the assistant is unsure.
- Non-functional: common queries stay as fast as today; slower tool use is fine when it is needed. Hallucinations go down without the assistant refusing everything.
Clarifying questions
- Which kinds of unknown matter most: recent facts, niche facts, or the user's own context?
- What tools exist today: web search, internal documents, user files?
- How much extra latency is acceptable when retrieval is used?
- How do we learn today that an answer was wrong: thumbs-down, follow-up corrections, reviewers?
What a strong answer covers
- The architecture: a router in front of the model, retrieval and tools behind it, a policy layer, and the model writing a grounded answer with citations.
- The decision policy and its signals: query type, recency, the model's own confidence (log-probabilities, agreement across samples, a trained verifier), and whether retrieval found anything good.
- Keeping latency low: a cheap classifier first, retrieval only when needed, streaming the answer while sources load.
- Evaluation: offline sets of known-unknown questions graded for correctness, citation support and calibrated refusals; online, thumbs-down rate, regenerations, follow-up corrections and A/B tests.
- Failure modes: retrieval returning wrong or poisoned pages, the model ignoring its sources, over-refusal, and how each is detected.
Follow-ups
- The router sends 30% of queries to retrieval and latency doubles. What do you change?
- How do you stop the assistant from citing a source that does not support the claim?
- How would you use the cases you catch to make the base model better over time?
Where it's asked
- OpenAI · Technical screen: system design · Last asked Dec 202560 min · Design discussion, sometimes drawn in Excalidraw; for some roles, on the same day as the coding screen
What it tests
llm · retrieval · chatbots
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing
