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.
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 runs locally in this page. Saved results and figures are visible before execution.