All Questions
Ai Coding And Product Systems easy

A user of your code assistant's chat asks "How does authentication work in this project?" inside a monorepo with millions of lines of code. How should the system assemble context for the model?

  1. A Send the entire repository in the prompt so the model can see every possibly relevant file.
  2. B Send only the currently open file, since the user's question almost always concerns that file.
  3. C Fine-tune a model on the repository nightly so it memorizes the code and needs no context.
  4. D Retrieve and rank candidate files from an index, then pack the top results into a budget.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions