Specify a tie breaking rule for a shortlist

Read each comparison through to its condition. · 171 words

A weak prompt says, "Which bookstores look good?" It leaves the source, cutoff, and meaning of "good" unstated. A better prompt says: "Use only the visitor-center records below. Select bookstores rated at least 4.5 and no more than 2 km away. Rank by rating, highest first. If ratings tie, choose the store that opens earlier. Show the rating, distance, opening time, and a one-sentence reason for each choice. Return exactly two stores, or explain if fewer qualify." This defines the evidence, the ranking rule, and a checkable output.

The records are Corner Books, rating 4.8, 1.1 km, opens 9:00; River Reads, 4.7, 1.6 km, opens 10:00; and City Pages, 4.7, 0.9 km, opens 9:00. All three meet the rating and distance limits. Corner Books ranks first on rating. For the 4.7 tie, earlier opening time puts City Pages before River Reads. The checkable result is the ordered shortlist Corner Books, then City Pages. The response should also show that every source record was checked, so no eligible store disappears without explanation.

Check your recall

What tie breaking rule was specified, and which tied bookstore ranked first?

Check your answer

Break a rating tie by choosing the store that opens earlier. City Pages ranked first among the tied bookstores because it opens at 9:00, earlier than River Reads at 10:00.

Sources and credits

Original KeyTouch lesson. Background reading · DAIR.AI · General Tips for Designing Prompts.