Training, evaluating and replacing a retriever 00:00:01 Change encoders while the shelves are moving The catalog never closes. A new encoder is ready, but while Rina backfills a fresh index, eight more updates arrive. Mixing old document vectors with new query vectors in the same search could turn a successful build into a broken search. Train a retrieval encoder on queries, useful passages and negatives. A hard negative looks plausible under the current model but does not answer the query. False negatives are harmful: two differently worded documents can both be valid evidence. Split by source or time to avoid grading near-duplicates and measure separately on languages, rare names and exact identifiers. Start from snapshot one hundred, then replay changes one hundred one through one hundred eight in order. Keep the old and new encoder-index pairs identifiable and test both against the same queries. 00:00:57 Build an index from snapshot one hundred Hold out a multilingual test set and add labeled exact-code searches. Encode eligible documents with the same revision used for query encoding. Reconcile deletions and permission updates before comparing live results. Shadow eligible reads and measure retrieval plus end-to-end answer quality. Keep the incumbent available while evaluating the switch. 00:01:21 Follow writes during the migration Contrast valid evidence with meaningfully confusing passages under the same query. Review ambiguous negatives, and use the documented query and passage encodings consistently. Sample the real distribution of languages and problem types. For “cancel a renewal,” a passage about cancelling a shipment is a useful hard negative. An alternate renewal policy for the same entitled customer may be another positive. Compare exact-neighbor retrieval, approximate indexing and relevance judgments to locate a regression. Rerankers can reorder only the retrieved candidates. Tune retrieval and reranking budgets against end-to-end quality and latency. The correct part code arrives at rank 31 and the reranker sees 30 candidates. Optimizing the reranker alone cannot surface that result. Build the new index from a versioned snapshot while recording updates and deletions. Catch up, shadow real queries and compare cohorts and permissions. Switch an alias only after the candidate is current and rollback remains possible. Index B reaches event 107, but an access change at 108 has already taken effect. Delay reads from B until access checks can honor it. A dual encoder lets document vectors be computed ahead of time. Late interaction preserves several vectors and compares local matches at query time. A cross-encoder jointly processes a query and each candidate, often as a reranking stage. Changing the encoder means the index representation changes too. A production migration needs evaluation, a backfill and ordered catch-up before the traffic switch. 00:03:11 When better average recall hides a rare-code miss A new encoder raises average recall but drops rare part numbers below the agreed floor. What should guide cutover? Equal dimensions do not imply equivalent representations. Aggregate improvements can hide a costly regression. The new index earns a cutover when it catches the live data and meets quality gates on important groups, including rare identifiers. Equal vector widths alone cannot certify that the coordinate systems mean the same thing.