Let an agent query a knowledge graph safely
HardSystem design25 minREMLEPro outline
The question
You give an agent a tool that queries a knowledge graph. The model often writes queries with wrong relation names or parameters. Design the tool and the loop so answers stay correct.
What the interviewer is looking for
- Exposes a constrained query tool or templates
- Validates names against the ontology
- Returns helpful errors the model can act on
- Caps retries and falls back
- Evaluates answer correctness
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported 01.AI question type: what an agent should do after three failed tool calls in a row, and how to handle wrong tool parameters.
Reported in: mj.mianlingai.com
Practice question written by BlogLLM based on publicly reported interview formats. Not an official 01.AI question.