Turn any content — web pages, PDFs, YouTube videos, or documents — into Quiz using AI.
Adaptiq is an AI-powered Flask application that intelligently extracts, processes, and transforms content from multiple sources into usable knowledge.
Instead of manually reading, copying, and summarizing information, Adaptiq automates the entire pipeline:
- 🔗 Web pages → Extract → Clean → Summarize
- 📄 PDFs / Docs → Parse → Analyze → Structure
- 🎥 YouTube → Transcript → Insights
- 🧠 AI (Gemini) → Understand → Generate output
- URLs (web scraping with BeautifulSoup)
- YouTube videos (transcript extraction)
- PDF files (text extraction via
pypdf) - DOCX files (
python-docx)
-
Uses Google Gemini (google-genai) for:
- Content understanding
- Summarization
- Intelligent transformation
services/handles all extraction logic- Separation of concerns → scalable and maintainable
- Flask + HTML + JS frontend
- Fast interaction and processing
adaptiq/
│
├── app.py # Main Flask application
├── requirements.txt
│
├── services/ # Core logic
│ ├── extract_files.py
│ ├── extract_web.py
│ ├── extract_youtube.py
│ └── source_detector.py
│
├── templates/
│ └── index.html
│
├── static/
│ ├── script.js
│ └── style.css
│
└── uploads/ # Runtime uploaded files
git clone https://github.com/YOUR_USERNAME/adaptiq.git
cd adaptiqpython -m venv .venv
.venv\Scripts\activate # Windowspip install -r requirements.txtCreate a .env file in the root directory:
GOOGLE_API_KEY=your_api_key_here
⚠️ Never commit your.envfile
python app.pyThen open:
http://127.0.0.1:5000
- User provides input (URL / file / YouTube link)
source_detector.pyidentifies content type- Corresponding service extracts raw data
- Data is processed and sent to Gemini AI
- Clean output is returned to the UI
- 📚 Summarize research articles
- 🎥 Extract insights from long YouTube videos
- 🌐 Convert blog posts into structured notes
- 📄 Analyze uploaded documents instantly
- Backend: Flask
- Frontend: HTML, CSS, JavaScript
- AI: Google Gemini (
google-genai) - Parsing: BeautifulSoup, pypdf, python-docx
- Relies on transcript availability for YouTube
- Web scraping may fail on heavily protected sites
- AI output depends on prompt quality
- User authentication system
- History tracking
- Export results (PDF/Markdown)
- Advanced prompt customization
- Async processing for performance
Pull requests are welcome. If you want to improve the project:
- Fork the repo
- Create a new branch
- Submit a PR
MIT License
Most tools help you consume content.
Adaptiq helps you understand it.