KatInterview

Permission-Aware Q&A Assistant over Issue Tracker and Wiki

System DesignModel answer
MediumModel answerSystem Designragretrievalaccess-control

Last updated

Design an MVP retrieval-augmented assistant that answers employee questions across a ticketing system and a wiki, with citations, per-user access control, and fresh data.

Your company wants an internal assistant that answers employee questions by drawing on two systems of record:

  • An issue tracker (tickets with titles, descriptions, comments, and structured fields such as status, priority, and component).
  • A wiki (pages organized into spaces, with titles, long-form bodies, and metadata such as labels and parent pages).

Design an MVP that handles questions spanning both systems, for example:

  • "Where does project X stand right now, and which design document explains the most recent decision?"
  • "Give me a summary of the open top-priority bugs for service Y and point me to the matching runbook."

Constraints

  • Each ticket and each wiki page has its own access rules. A user must never receive content they are not allowed to see.
  • The experience is interactive: responses should arrive within a few seconds.
  • Every answer must cite its sources with links to the specific tickets or pages.
  • Tickets change often; wiki pages change much less often. The index must reflect both appropriately.

Cover the following in your answer

  1. Ingestion and indexing: chunking, embeddings, metadata.
  2. Retrieval: filters, ranking, hybrid search.
  3. Prompting and generation, including how citations are produced and validated.
  4. How you enforce permissions end to end.
  5. Evaluation and monitoring, both offline and online.

State your scale assumptions and call out the main trade-offs.

Hints

Hint 1

Treat the two example questions differently: 'all open top-priority bugs' is a filter problem needing completeness, while 'the relevant runbook' is a similarity problem. Consider routing each part to a different retrieval path.

Hint 2

Decide where access control lives. If restricted text ever enters the model's prompt it can leak through the answer, so think about filtering inside the search itself and what happens when permissions change.

Hint 3

Plan for freshness and cost: which fields can be updated as metadata only, when must you re-embed, and how do you catch missed change events and deletions?

Hint 4

For evaluation, separate retrieval quality (recall of the right documents) from answer quality (faithfulness, citation correctness), and add a dedicated permission-leak test set.