System Design Atlas

Knowledge assistant with source references

03 / 10Worked example

Scale estimates

Which quantities first constrain search, model calls and document preparation?

We expect 500 users, ten questions per person per day and 10,000 documents. These assumptions help in choosing a launch architecture; a load test later checks the actual distribution.

Starting point Quality targets are set; question volume, document collection size, context size and update frequency remain to be defined.

Assumptions for the example case

Example design: one operator's internal knowledge, a bounded document collection and existing authentication. Numbers and targets are assumptions. The assistant reads knowledge; tool actions and open-web research are outside scope.

Size questions, context and the document collection

Separate workload calculations define the test profile

Utilisation

500 Persons × 10 Questions = 5,000 Questions/DayDaily averages: 0.058 Questions/s

Peak and parallelism

0.058 × factor 20 = 1.16 Questions/s× 8 s average duration = 9.3 concurrent requests, approximately 10

Search inventory

10,000 Documents × 20 Passages = 200,000 Passages1536 Dimensions × 4 Byte = 1.23 GB of raw vectors

Candidates and Context

10 Candidates → 6 Selected passages × 500 Tokens + 400 tokens for question/instructions= 3,400 input tokens/question; 17 million input tokens/day
  • Use and model context
  • Collection and search data

Candidate count controls retrieval; only selected passages enter model context. Storage, concurrency and token assumptions remain independently testable.

Illustrative quantities define the test profile and context limit. Search quality needs separate evidence.

Check the assumption calculations

  1. 01

    Questions per day

    5,000

    500 people × 10 questions = 5,000; ÷ 86,400 ≈ 0.058 questions per second.

    For the designThe daily average hides common working hours and short peaks.

  2. 02

    Simultaneous responses

    ≈ 10

    Assumed peak: 20 × 0.058 ≈ 1.16 questions/s. At an 8-second mean duration: 1.16 × 8 ≈ 9.3 concurrent requests.

    For the designStart with about ten simultaneous responses and test reserves. The twelve-second goal from step 2 is a percentile, not an average.

  3. 03

    Searchable passages

    200,000

    10,000 documents × an assumed 20 passages. With 1,536 vector dimensions × 4 bytes: approximately 1.23 GB of raw vectors.

    For the designText, metadata, search indices, versions and backups increase the actual storage requirement.

  4. 04

    Model context per day

    ≈ 17 million input tokens

    6 passages × 500 tokens + 400 tokens for question and instructions = 3,400; × 5,000 questions.

    For the designCharge output tokens, query embeddings and document preparation separately. Prices depend on the later selected provider.

Consequences for the launch

Limited parallelism
A fixed concurrency limit protects model quota and cost. When all slots are occupied, a request waits briefly or receives clear feedback.
Separate import
Large document imports use a separate quota so shared embedding limits do not block ongoing questions.

Terms in this step

Tokens
A processing unit of the model. Document length, question and output use different tokens.

Try it yourself

Convert daily question volume into an assumed peak. Set and justify a maximum number of search results per question.

A hint for your attempt

Keep the measurement and unit visible. Watch model quota, search latency and document quality separately.

Compare with a possible solution
Request peak
5,000 questions per day averages 5,000 ÷ 86,400 ≈ 0.058 questions/s. With a peak factor of 20, it is 1.16 questions/s; with 8 seconds of average response time, about 9.3 answers running simultaneously. A load test checks these values under the same basic assumptions.
Context limit
Retrieval returns 10 candidates; up to 6 passages of 500 tokens enter model context. This limits cost and context length while allowing weak candidates to be removed. With 400 tokens for the question and instructions, this totals 3,400 input tokens per answer and about 17 million per day at full utilisation. The test set checks whether six supporting passages suffice; excessive or blocked passages are negative cases.

Apply to your project

Which amount dominates your case: questions, document changes, index size, context or model quota?

With these limits, we draft a structured response contract in step 4.