Machine Learning🔨 Personal Project
AI-Powered Ebook Generator
Automated ebook generation pipeline using Groq Cloud API (Llama 3.1) with complete workflow from content generation to compressed PDF output, featuring AI-powered chapter structure definition.
Project Overview
🎯
Objective
Create a complete automated pipeline for generating professional ebooks using AI, from topic definition to final compressed PDF with auto-retry and rate limit handling
💼
My Role
Full-stack developer - designed and implemented complete pipeline with 6 automated stages including AI integration, HTML conversion, and PDF optimization
⏱️
Timeline
2 weeks
🛠️
Tech Stack
Python, Groq Cloud API, Llama 3.1
📈
Key Results
- ✓Complete automated pipeline: AI chapter definition → Content generation → HTML conversion → PDF export → Compression
- ✓Cost-effective solution using Groq Cloud API with automatic retry and exponential backoff
- ✓Example output: 12-chapter ebook (116KB markdown, 240KB HTML, 24MB optimized PDF)
- ✓4 compression quality levels with 30% size reduction maintaining text quality
Impact
12 chapters, 11,564 words generated
Value
30% file size reduction
📸
Visual Documentation
Screenshot 1
Screenshot 2
Screenshot 3
Tools & Technologies
PythonGroq Cloud APILlama 3.1MarkdownwkhtmltopdfGhostscript