← Back to context

Comment by HenryNdubuaku

17 hours ago

Makes a lot of sense! declare one record with the ~20 keys as fields, cuisine and friends as enums with the common values, and the grammar can't produce a value outside the set; fields with no evidence come back empty, so the output is exactly the diff.

For "which place", query nearby POIs from location in the app and pass the candidate names as an enum field, so Needle picks rather than guesses.

Two caveats: it's text-in, so you need on-device STT first, and opening_hours syntax is the risky bit, so either put the format in the description or capture the raw hours and normalise in code.