Based on the experiments discussed in the 2025/08/26 meeting, we should implement a new hybrid URL resolver.
Core Idea
- Create a hybrid resolver that leverages both the existing
url-resolver and the new Gemini URL context/video features.
- The goal is to improve summary quality and handle more URL types effectively.
Implementation Plan
- Default to Gemini: Use the Gemini API as the primary method for fetching URL titles and summaries.
- Fallback Mechanism: If Gemini fails, fall back to the existing
url-resolver.
- Cloudflare Worker (Optional): Explore using a Cloudflare Worker to combine results from Gemini and browser rendering for even richer summaries.
- Admin API: Create a new Admin API endpoint to allow manual triggering and writing to the
urls index for testing and debugging.
- YouTube Video Integration: For YouTube URLs, use the Gemini API's video understanding feature to generate a transcript or summary and append it to the
summary field in the urls index. This content should be expandable in the UI.