Design a retrieval layer for code search, docs, and tests.

Instruction: Explain how you would build retrieval for a coding agent.

Context: Assesses whether the candidate can design a practical architecture and explain the main tradeoffs. Explain how you would build retrieval for a coding agent.

Updated

Official answer available

Read the opening below, then unlock the full answer and practical guidance.

I'd retrieve against a specific repository commit and keep source identity on every result. Exact search handles names and error text; symbol relationships connect definitions to callers; documentation and tests supply intent and expected behavior...

Your preparation path

Work through these questions in order. Read the answer aloud, then explain it in your own words.

Related Questions