- Chat with LLM about Taylor Swift's New Heights podcast appearance (transcript here)
- Discuss Travis Kelce's GQ magazine interview
Click the thumbnail above to watch the YouTube video explaining this project
Product | Purpose | Documentation |
---|---|---|
Cloudflare Workers | Serverless backend & API | Docs |
Durable Objects | Stateful chat session management | Docs |
R2 Storage | Object storage for transcript & article | Docs |
Workers AI | AI inference w/ openai gpt-oss-120b | Docs |
AutoRAG | Retrieval Augmented Generation | Docs |
Browser Rendering | Scraped GQ article | Docs |
- React 18
- Emotion/Styled for CSS-in-JS
- esbuild for bundling
- TypeScript
- OpenAI OSS 120B on Cloudflare Workers AI (
@cf/openai/gpt-oss-120b
)
- Node.js 18+ and npm
- Cloudflare account with Workers plan
- Wrangler CLI installed globally
npm install -g wrangler
- Clone and install dependencies:
git clone https://github.com/elizabethsiegle/chat-w-taylor-on-newheights-and-travis-gq-autorag-openaioss
cd taylor-newheights-rag
npm install
npm install --save-dev esbuild @types/react @types/react-dom
-
Configure wrangler.jsonc (see mine)
-
Auth with Cloudflare/login
wrangler login
-
Download the YouTube podcast transcription and hit the /scrape-gq endpoint to scrape the GQ article text. Save it to a .txt file.
-
Set up R2 bucket with scraped GQ article and New Heights transcript from the previous step.
wrangler r2 bucket create taylor-rag-articles
wrangler r2 object put taylor-rag-articles/travisgq.txt --file ./path/to/travisgq.txt
wrangler r2 object put "taylor-rag-articles/Taylor Swift on Reclaiming Her Masters, Wrapping The Eras Tour, and The Life of a Showgirl NHTV.txt" --file ./path/to/transcript.txt
-
Configure AutoRAG in your Cloudflare dashboard under AI Point to your taylor-rag-articles R2 bucket
-
Build and deploy:
npm run build
wrangler publish