Research notebook

Retrieval relevance is not constraint satisfaction notebook

Edit a Python cell and run it here. Your code runs in this browser tab; the notebook runtime and packages are served by this site.

Python starts when you choose Run.

Retrieval relevance is not constraint satisfaction

A higher-ranked product can violate a hard requirement. Validation helps only if retrieval includes a feasible alternative.

Offline retrieval-versus-feasibility counterexample with exact attributes; no WebShop run or purchase.

Python · cell 1
catalog_items 50 queries 25
completed {'keyword': 0, 'checked': 25}
keyword_constraint_violations {'color': 9, 'size': 8, 'price': 8}
Feasible selections at retrieval cutoffs: [{'k': 1, 'completed': 0}, {'k': 2, 'completed': 25}]
Python · cell 2

Python runs locally in this page. Saved results and figures are visible before execution.

Download full experiment notebook