Skip to content

feat: replace Google Cloud Vision OCR with Claude Haiku vision#47

Open
chuckmeyer wants to merge 5 commits into
mainfrom
feat/claude-vision-ocr
Open

feat: replace Google Cloud Vision OCR with Claude Haiku vision#47
chuckmeyer wants to merge 5 commits into
mainfrom
feat/claude-vision-ocr

Conversation

@chuckmeyer
Copy link
Copy Markdown
Contributor

Summary

  • Replaces GCV + regex text extraction with a single Claude Haiku vision call
  • Model identifies card from artwork/layout, returns {name, number, set} directly
  • Removes ~17 brittle regex unit tests; adds 10 handler tests with SDK mock
  • Adds @anthropic-ai/sdk dependency

⚠️ Blocked on deployment

Requires ANTHROPIC_API_KEY added to Vercel before this can go to production. Once available:

printf '%s' "$ANTHROPIC_API_KEY" | vercel env add ANTHROPIC_API_KEY production --scope algolia --force

GOOGLE_CLOUD_VISION_API_KEY can be removed from Vercel after validating.

🤖 Generated with Claude Code

chuckmeyer and others added 4 commits March 12, 2026 00:18
- Root README now has full Event Management section (setup_event.sh steps, reset_and_ingest, switching active events)
- data-utilities README trimmed to individual script descriptions, CSV format, and output schema
- Cross-link between the two

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Swaps the GCV + regex text-extraction pipeline for a direct Claude Haiku
vision call. The model identifies the card from artwork and layout,
returning {name, number, set} JSON — no fragile regex needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 20, 2026

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

Project Deployment Actions Updated (UTC)
algolia-tcg-search Ready Ready Preview, Comment Apr 22, 2026 10:40pm
tcg-search Ready Ready Preview, Comment Apr 22, 2026 10:40pm

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.

1 participant