Step-by-step answer
Core 90 min8 stepsBuild and measure a hybrid pipeline
BM25 with an identifier-safe analyser, dense retrieval through the OpenAI SDK, RRF and a local cross-encoder over the top 100, plus an optional claude -p listwise rerank whose IDs are validated in code, all measured per stratum on 60 labelled queries over a synthetic corpus of 24 matters and a precedent library.
Back to the exercise