KatInterview

Designing LLM-Generated Daily Briefs for Perishable Goods Logistics

Machine LearningModel answer
MediumModel answerMachine Learningllmraggrounding

Last updated

Design a pipeline that adds LLM-written narrative insights to existing supply-chain reports while keeping numbers exact, data secure, and outputs verified before delivery.

Scenario

You work as a data analyst for a distributor of fresh, high-quality produce. Each day your team produces supply-chain reports using SQL queries and BI dashboards. Leadership wants to try an LLM that writes short plain-language insights from the structured data so that operations staff can act sooner.

Your task

Describe how you would add an LLM to the reporting process. Cover three areas:

  1. Fit: Give one supply-chain situation where an LLM is clearly better than a static dashboard, and one where it is worse or risky.
  2. Architecture: Outline the end-to-end flow that produces a report, and explain how you keep the model anchored to real database records.
  3. Validation: Propose a way to check the accuracy and truthfulness of generated summaries before stakeholders see them.

Constraints

  • The data includes sensitive inventory and pricing information.
  • The solution must serve hundreds of operations managers.
  • Managers value precision over creativity.

Answer as you would in a technical screen: structured, concrete, and explicit about trade-offs.

Hints

Hint 1

Separate computing facts from describing facts: decide which component is allowed to produce numbers and which is only allowed to write sentences.

Hint 2

Think about how to make a wrong number structurally impossible, for example by having the model reference fact IDs instead of typing values.

Hint 3

For validation, combine cheap deterministic checks on every report (numbers, entities, direction, coverage) with an offline golden set and a shadow-mode rollout.

Hint 4

Do not forget access control: filter data to each manager's scope before it enters the prompt, and plan a safe fallback when checks fail.