Extract β’ Understand β’ Summarize β’ Visualize (PDF + LaTeX) SummarIQ is an AI-powered system designed to summarize scientific research papers written in PDF or LaTeX. It extracts sections, equations, metadata, and produces structured summaries using transformer-based models like T5-small and BART-large.
This project includes:
- AI summarization models (T5, BART)
- LaTeX equation extraction & rendering
- FastAPI backend
- Gradio UI
- Docker deployment
- Prometheus + Grafana monitoring
- iOS UI prototypes
- Remote GPU inference (Kaggle)
Watch the system in action:
βββ App design
βΒ Β βββ Purple Pink Gradient Login Page Mobile Prototype (3)
βΒ Β βΒ Β βββ 1.jpg
βΒ Β βΒ Β βββ 2.jpg
βΒ Β βΒ Β βββ 3.jpg
βΒ Β βββ Screen_1.png
βΒ Β βββ Screen_2.png
βΒ Β βββ Screen_3.png
βββ deployment
βΒ Β βββ docker-compose.yml
βΒ Β βββ Dockerfile
βΒ Β βββ gradio_app.py
βββ documentation
βΒ Β βββ plot_images
βΒ Β βΒ Β βββ Architechture_diagram.png
βΒ Β βΒ Β βββ fairness_explainability.png
βΒ Β βΒ Β βββ githubrepo.png
βΒ Β βΒ Β βββ sample_equation_output.png
βΒ Β βΒ Β βββ sample_summary_output.png
βΒ Β βΒ Β βββ shap_summary.png
βΒ Β βββ Poster.pdf
βΒ Β βββ Project_report.pdf
βΒ Β βββ SummarIQ_project_template.pdf
βββ monitoring
βΒ Β βββ grafana
βΒ Β βΒ Β βββ summariq_graphana_dashboard.json
βΒ Β βββ metrices_report
βΒ Β βΒ Β βββ metrics_report_valset.csv
βΒ Β βΒ Β βββ monitoring_images
βΒ Β βΒ Β βΒ Β βββ cpu_usage.png
βΒ Β βΒ Β βΒ Β βββ Fairlear_matrices.png
βΒ Β βΒ Β βΒ Β βββ feedback_latest_rating.png
βΒ Β βΒ Β βΒ Β βββ feedback_no_comments_total.png
βΒ Β βΒ Β βΒ Β βββ feedback_rating.png
βΒ Β βΒ Β βΒ Β βββ feedback_total.png
βΒ Β βΒ Β βΒ Β βββ feedback_with_comments_total.png
βΒ Β βΒ Β βΒ Β βββ localhost_metrices_log.png
βΒ Β βΒ Β βΒ Β βββ request_count.png
βΒ Β βΒ Β βΒ Β βββ request_latency_seconds.png
βΒ Β βΒ Β βΒ Β βββ shap_values.png
βΒ Β βΒ Β βββ structured_summary.csv
βΒ Β βββ prometheus
βΒ Β βββ alert_rules.yml
βΒ Β βββ prometheus.yml
βββ Notebooks
βΒ Β βββ bart_train.ipynb
βΒ Β βββ kaggle_server_run.ipynb
βΒ Β βββ risk_management.ipynb
βΒ Β βββ t5_model_test.ipynb
βΒ Β βββ test_summarize.ipynb
βΒ Β βββ test_t5_small.ipynb
βΒ Β βββ training.ipynb
βΒ Β βββ valset_test.ipynb
βββ README.md
βββ requirements_projects.txt
βββ requirements.txt
βββ src
Β Β βββ __pycache__
Β Β βΒ Β βββ app.cpython-310.pyc
Β Β βββ app.py
Β Β βββ data
Β Β βΒ Β βββ latex_extracted.json
Β Β βΒ Β βββ Test_pdf
Β Β βΒ Β βββ 2404.08534v2.pdf
Β Β βΒ Β βββ sm.pdf
Β Β βΒ Β βββ sm.tex
Β Β βΒ Β βββ Tower_V3.tex
Β Β βΒ Β βββ tower.pdf
Β Β βββ equation_renderer
Β Β βΒ Β βββ __pycache__
Β Β βΒ Β βΒ Β βββ app.cpython-310.pyc
Β Β βΒ Β βΒ Β βββ eqapp.cpython-310.pyc
Β Β βΒ Β βΒ Β βββ quicklatex_app.cpython-310.pyc
Β Β βΒ Β βΒ Β βββ quicklatex_renderer.cpython-310.pyc
Β Β βΒ Β βΒ Β βββ renderer.cpython-310.pyc
Β Β βΒ Β βββ eqapp.py
Β Β βΒ Β βββ renderer.py
Β Β βββ extractor
Β Β βΒ Β βββ __pycache__
Β Β βΒ Β βΒ Β βββ latex_extractor.cpython-310.pyc
Β Β βΒ Β βββ extract_usingcv.py
Β Β βΒ Β βββ latex_extractor.py
Β Β βββ models
Β Β βΒ Β βββ __pycache__
Β Β βΒ Β βΒ Β βββ summarizer_remote.cpython-310.pyc
Β Β βΒ Β βββ summarizer_remote.py
Β Β βββ summarizer_kaggle.py
Β Β βββ summarizer_local.py
Β Β βββ utils
Β Β βββ load_data.py
Β Β βββ response_server
Β Β βββ api_response.json
Β Β βββ response_without_T5server.json
- T5-small (fast, lightweight)
- BART-large (high accuracy)
- Section-wise summarization
- Handles long scientific text
- Detects inline & block equations
- Renders equations as images
- Ranks important equations
/summarize-latexendpoint- PDF/LaTeX processing
- JSON structured output
- Upload interface
- Real-time response
- Feedback collection
- Dockerfile + docker-compose
- Separate services for API, Gradio, Prometheus
- Works on local + cloud environments
- Prometheus for metric scraping
- Grafana dashboards
- Custom metric:
summariq_feedback_total
- Screens included in
App design/ - Designed for future live deployment
git clone https://github.com/yourusername/SummarIQ.git
cd SummarIQ
python3 -m venv venv
source venv/bin/activate
This project uses two separate requirements files:
-
pip install -r requirements_projects.txt -
pip install -r requirements.txt
-
docker-compose build -
docker-compose up
This starts:
- FastAPI β http://localhost:8000
- Gradio UI β http://localhost:7860
- Prometheus β http://localhost:9090
- Grafana β http://localhost:3000
uvicorn app:app --reload --port 8000
python gradio_app.py
POST /summarize-latex
curl -X POST -F "file=@sample.tex" http://localhost:8000/summarize-latex
utils/response_server/api_response.json
- Receive LaTeX/PDF
- Extract sections & equations
- Preprocess scientific text
- Summarize using T5/BART
- Produce structured JSON output
- Render LaTeX equations
- Display summary in Gradio / iOS UI
Metrics collected:
- API latency (p50, p90, p95)
- Total requests
- Feedback count
summariq_feedback_total - CPU/RAM usage
- Docker container performance
- Error rates Dashboards:
- Grafana β http://localhost:3000
- Prometheus β http://localhost:9090
Located in App design/:
Includes:
- Login screen
- Upload screen
- Processing screen
- Summary UI design Powered by SwiftUI (planned for Phase 2 deployment).
Phase 2
- Fine-tuned summarization (domain-specific)
- Full iOS app integration
- Deploy backend to AWS/GCP
- Real-time feedback storage in DB (MongoDB/PostgreSQL)
- Advanced Grafana dashboards
- Semantic equation understanding
- User accounts + authentication
