This was the system design round of my Fireworks phone screen. The question:
Design an internal chatbot.
Employees ask about the company wiki, the latest news, or both.
The wiki retriever already exists.
News is a single API call, not a search system you design: search(keywords, start_time) -> articles. Each article has id, headline, time, publisher, url, and body. Call it when the question needs news. Do not crawl the web.
Scale: one company, 1,000 employees, 15,000 questions/week, peak 20 concurrent generations. Conversations average 5 turns. English only.
Answer contract:
Label each claim INTERNAL or NEWS or Both.
Wiki claims cite a page_id from the chunks returned for this turn.
News claims cite an article id returned by the API for this turn, and the reply shows an "as of" time.
If the needed evidence is not in the chunks or the API result, say "I don't know."
What we have today: frontier model, one large system prompt, the retriever, and the news API.
Assets:
Frontier chat API. No weight access.
Fireworks open source models available.
You may fine-tune open models via Fireworks fine tuning products.
Already known gaps of the current system: hallucination, source choice, format, inaccurate citations, cost.
Design three things. Do not redesign the retriever as we already did that.
- Overall workflow. How to improve the accuracy of the answers.
- Evaluation of the answers.
- Post-training recipe that closes the gaps.
Discussion
Loading comments…