nice-gee/scripts
kbanc85 15d4775322 Implement two-tier AI extraction for 19% cost savings
Optimization strategy:
- Tier 1: Claude Haiku extracts metadata (slug, title, topics, keyPoints)
- Tier 2: Claude Sonnet extracts quality content (claims, quotes, context)

Benefits:
- 19% cost reduction per article (~$0.017 vs $0.021)
- 2-3x faster metadata extraction
- Each model optimized for its strength
- Maintains quality while reducing costs

Performance:
- Haiku: Fast, cheap, perfect for structured data
- Sonnet: High quality for nuanced analysis
- Combined: Best of both worlds

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-06 13:10:22 -05:00
..
add-claim-to-data.ts Fix comma insertion logic to prevent undefined entries 2025-11-06 11:46:32 -05:00
auto-add-new-articles.ts Add automated article processing system 2025-11-05 21:31:07 -05:00
check-new-articles.ts Fix TypeScript isolatedModules export error 2025-11-06 11:28:18 -05:00
extract-article-data-old.ts.bak Implement two-tier AI extraction for 19% cost savings 2025-11-06 13:10:22 -05:00
extract-article-data.ts Implement two-tier AI extraction for 19% cost savings 2025-11-06 13:10:22 -05:00
generate-rss.ts Add defensive checks to RSS/sitemap generation 2025-11-06 11:16:57 -05:00
generate-sitemap.ts Add defensive checks to RSS/sitemap generation 2025-11-06 11:16:57 -05:00
merge-migrated-data.ts Add 2 new claims pages using automated AI extraction 2025-11-04 14:29:42 -05:00