Design a Small Retrieval-Augmented Generation System

Quick Overview

Design a small RAG system with document provenance, access-aware retrieval, grounded generation, separate retrieval evaluation, and reliable document updates.

Design a Small Retrieval-Augmented Generation System

Company: Atlassian

Role: Machine Learning Engineer

Category: ML System Design

Difficulty: medium

Interview Round: Technical Screen

Design a small retrieval-augmented generation system that answers questions using a supplied document collection. Explain ingestion, retrieval, answer generation, and how you would verify that answers are grounded in the retrieved material. ### Clarifying Questions to Ask - What document formats, update frequency, and access restrictions apply? - Should answers cite supporting passages and abstain when evidence is missing? - What size and latency constraints justify the initial architecture? ```hint Evaluate retrieval separately from generation A fluent answer cannot compensate for never retrieving the relevant evidence. ``` ### What a Strong Answer Covers - Document parsing/chunking, metadata, indexing, and retrieval. - Context construction with source provenance and access filtering. - Grounded answer evaluation, abstention, and update handling. ### Follow-up Questions - How would you diagnose a wrong answer when the correct document exists? - How would deleted or permission-restricted documents be removed from retrieval?

Overview: Design a small RAG system with document provenance, access-aware retrieval, grounded generation, separate retrieval evaluation, and reliable document updates.

Atlassian logo
Atlassian
Nov 14, 2026
mediumMachine Learning EngineerTechnical ScreenML System Design
1
0

Design a small retrieval-augmented generation system that answers questions using a supplied document collection. Explain ingestion, retrieval, answer generation, and how you would verify that answers are grounded in the retrieved material.

Clarifying Questions to Ask Guidance

  • What document formats, update frequency, and access restrictions apply?
  • Should answers cite supporting passages and abstain when evidence is missing?
  • What size and latency constraints justify the initial architecture?

What a Strong Answer Covers Guidance

  • Document parsing/chunking, metadata, indexing, and retrieval.
  • Context construction with source provenance and access filtering.
  • Grounded answer evaluation, abstention, and update handling.

Follow-up Questions Guidance

  • How would you diagnose a wrong answer when the correct document exists?
  • How would deleted or permission-restricted documents be removed from retrieval?