You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the speed of iteration, it seems like the right time to introduce a very basic test suite to ensure there's no regression in accuracy.
Today: We have 8 queries that we run against every PR to get a vibe-check if stuff is breaking or accuracy has regressed.
- What are the three highest income zipcodes in {City}
- Give me 5 zipcodes in {State} with the highest income and hispanic population of at least 2,000
- Which 3 zipcodes in {City} have the highest female to male ratio?
- Which zipcode in {City} has the most racial diversity and what is the racial distribution?
- 10 highest crime cities in {State}
- Which 20 zipcodes in {State} have median income that's closes to the national median income?
- Which zipcode has a median income that is closest to the national median income?
- What is the distribution of all crime in {City}
Vibe-check:
Does the output make sense?
Is there a degradation in speed? i.e. is it fast (~2s for most e2e requests, sometimes 4s or 5s when the API has to retry)
For the API, we could make these unit tests (heads up - they could be very flaky because LLMs are non-deterministic). Verifying if the generated SQL matches the expected output may not work, but checking the table values might work! We could also just have the table values outputted and compare manually.
For the front-end, can we do something simple here? If not, we can just manually try the 8 queries in the Vercel preview deployments, that's pretty clutch already
The text was updated successfully, but these errors were encountered:
With the speed of iteration, it seems like the right time to introduce a very basic test suite to ensure there's no regression in accuracy.
Today: We have 8 queries that we run against every PR to get a vibe-check if stuff is breaking or accuracy has regressed.
Vibe-check:
For the API, we could make these unit tests (heads up - they could be very flaky because LLMs are non-deterministic). Verifying if the generated SQL matches the expected output may not work, but checking the table values might work! We could also just have the table values outputted and compare manually.
For the front-end, can we do something simple here? If not, we can just manually try the 8 queries in the Vercel preview deployments, that's pretty clutch already
The text was updated successfully, but these errors were encountered: