DataAgentBench icon indicating copy to clipboard operation
DataAgentBench copied to clipboard

Yelp query 4 ground truth uses singular category not present in source data

Open jackn11 opened this issue 3 months ago • 1 comments

Problem

At revision 2489ca16a0c9ab211728211fec21c39be4e9099e, query_yelp/query4/ground_truth.csv records:

Restaurant,3.633676092544987

The actual Yelp category identity is plural, Restaurants.

Evidence

The historical query_yelp/query4/ground_truth.py (before ground-truth scripts were removed in c77558cd0) splits each source categories string, explodes the literal category identities, groups them without singularization, and writes the selected category directly to CSV. Replaying that logic over the complete official objects gives:

  • winner: Restaurants
  • credit-card-accepting businesses in the category: 27
  • eligible review rows: 778
  • rating sum: 2,827
  • exact average: 2827 / 778 = 3.633676092544987...

Shopping is second with 17 eligible businesses, so the winner is unique. The query 6 and query 7 reference answers in the same Yelp slice also use Restaurants.

The current query 4 validator masks the mismatch because it searches for singular Restaurant as a substring, which happens to accept Restaurants. Strict typed consumers still see an incorrect ground-truth category identity.

Suggested correction

Change the query 4 CSV category and validator reference from Restaurant to Restaurants. The numeric value does not need to change.

A downstream exact typed audit preserving the real category is in proof-tldr/Signature#33.

CC @ethan-kharitonov for the downstream benchmark audit.

jackn11 avatar Aug 24 '26 14:08 jackn11

Thanks @jackn11 for the careful check! You're right that the source data says Restaurants. We'll leave the current answer as is: the validator matches restaurant as a case-insensitive substring, so Restaurants already passes and no submission has ever been scored wrong. It also makes the check more fault-tolerant, since answers that say Restaurant are accepted too.

Ruiying-Ma avatar Sep 07 '26 19:09 Ruiying-Ma