Training, evaluating and replacing a retriever
medium 6 minTrain a retrieval encoder on queries, useful passages and negatives.
Where it shows up
The same pattern appears across everyday software.
Migrate the encoder while documents are changing
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.