promptdojo_

Retrieval metrics and vector-DB shape — recall@k, MRR, and why the filter runs before the search — step 2 of 7

Acme asks for its refund policy. The pipeline ranks ALL rows, slices the top-2, then filters by tenant — and acme sees an empty result, even though acme/refunds sits in the index at a healthy 0.81. What's the right fix?