Sifat Ullah Sharkar

Teaching the model to look things up

The workflow I recommend for LLM features in a product: retrieve first, let the model call tools for live data, and keep the backend in charge.

  • 6 steps
  • 2 min
  • Mar 2025 – present
Knowledge
retrieved passages
Live data
tool calls
In control
the backend
User Express API Vector DB LLM API Tool questionembed + searchtop passages + sourcesquestion · passages · tool schemastool_call get_price({ sku })validate args · check permissionrun itresulttool resultanswer citing passagesanswer + sourceslog prompt · tools · latency
  1. 1Question
  2. 2Retrieve
  3. 3Ask
  4. 4Tool call
  5. 5Answer
  6. 6Recap