Skip to content

Tighten speakeasy discovery and reclassify mislabeled cocktail bars#25

Draft
nicholasjpanella wants to merge 1 commit into
mainfrom
dev/speakeasy-discovery-fix-f70e
Draft

Tighten speakeasy discovery and reclassify mislabeled cocktail bars#25
nicholasjpanella wants to merge 1 commit into
mainfrom
dev/speakeasy-discovery-fix-f70e

Conversation

@nicholasjpanella

Copy link
Copy Markdown
Contributor

Summary

Implements all three speakeasy classification fixes discussed for cases like The Copper Shaker:

  1. Tighter discovery — narrower query template, speakeasy-specific system prompt, and post-discovery filter that drops visible cocktail bars without hidden-bar signals.
  2. Model-inferred categoryinferCategoryFromModel on the speakeasies profile so search_type tracks discovery lens but category comes from model output + heuristics (not forced speakeasy).
  3. Re-classify misclassified rows — data migration moves speakeasy-profile places lacking hidden-bar signals to bar and enqueues classify_place jobs.

Type of change

  • Ingestion / scraper change
  • Taxonomy change

Testing

  • npm run typecheck
  • npm test (94 passing, including new speakeasy + taxonomy field tests)
  • npm run ingestion:taxonomy-publish (taxonomy v4)
  • Verified The Copper Shaker reclassified: category=bar, summary no longer calls it a speakeasy

Checklist

  • Ingestion changes fix the write path (no repair-only scripts)
  • Taxonomy version bumped to 4 in config/taxonomy.json
  • No secrets committed

Notes for reviewers

After merge, operator should run:

npm run ingestion:taxonomy-publish
npm run ingestion:backfill

Migration 20260613130000_speakeasy_reclassify re-categorizes existing false positives (18 rows in dev DB) and queues editorial refresh. Future speakeasies discover runs use the new filter + category inference.

Open in Web Open in Cursor 

- Add speakeasy discovery rules, post-filter, and inferCategoryFromModel
  so the speakeasies profile is a search lens — not a forced category.
- Bump taxonomy to v4 with a narrower speakeasy query template.
- Migration re-categorizes speakeasy-profile rows lacking hidden-bar
  signals to bar and enqueues classify_place editorial refresh.

Co-authored-by: Nicholas P. <nicholasjpanella@users.noreply.github.com>
@vercel

vercel Bot commented Jun 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
baywire-app (test) Ready Ready Preview Jun 13, 2026 11:52pm
baywire-app Building Building Jun 13, 2026 11:52pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants