-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Use Workers AI LLM to generate concise summaries of podcast descriptions.
Endpoint Design
GET /podcast/123456?summary=true
Response includes:
{
"podcast": { ... },
"summary": "A concise 2-3 sentence summary of what this podcast is about."
}Implementation Notes
- Use Workers AI LLM (e.g.,
@cf/meta/llama-2-7b-chat-int8) for summarization - Cache summaries in KV (they don't change once generated)
- Consider batch processing for popular podcasts
- Limit summary length to 150-200 characters
Approach
- Fetch podcast description from iTunes API
- If summary not in KV cache, generate via LLM
- Store generated summary in KV with long TTL (30 days)
- Return cached summary on subsequent requests
Acceptance Criteria
-
/podcast/123?summary=truereturns AI-generated summary - Summaries are cached in KV
- Graceful fallback if AI unavailable
- Feature-flagged for gradual rollout
- Tests added
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request