Devscape — system design

Plain board
Types · drag to reorder

Design a RAG question-answering service

Design a service that answers questions over a company’s own documents: a question arrives, the system finds the passages that answer it, and a language model writes the reply from those passages. Training a model is out of scope.

Requirements
  • Answer from the company’s documents, with the sources it used
  • New and edited documents become answerable without a full rebuild
  • A user only ever retrieves documents they are allowed to see
  • Say "I don’t know" rather than inventing an answer
Scale
Questions
2M per day
Corpus
10M chunks
Average chunk
600 tokens
Answer length
300 tokens

Draw the design on the board, fill in Your answer, then submit.

Loading board

Loading board