Bi-encoder vs cross-encoder: what's the reranker latency cost?

RetrievalTechnical deep diveAbout 9 minutes

Understand the idea, explain it in your own words and use the rubric to find your next learning gap.

Local drafts · no account or AI calls
User-provided interview topic

The idea behind the question

A bi-encoder separately represents queries and documents, allowing indexed retrieval. A cross-encoder scores a query-document pair together and is often used on a smaller candidate set.

AN ILLUSTRATIVE EXAMPLE

Retrieve 30 candidates with an index, then rerank only those before sending a few passages to the generator.

A practical way to learn it

Draw a retrieval/reranking timeline and allocate a hypothetical latency budget. Label it as an estimate.

Open online notepad

The related tool opens separately; your interview answer stays here. Written practice is self-guided, without automatic code grading.

Build an explanation you understand

  1. State what the concept does in plain language.
  2. Apply it to the example and make your assumptions explicit.
  3. Explain a trade-off, failure case and how you would test it.
  4. Distinguish your actual experience from a proposed approach.

Further reading

Further-reading links support learning; the reference is Sukoaa-authored, not an official employer answer key.