A small web app that helps you quickly understand research papers by turning a PDF into a concise, structured context summary.
The app extracts text from a PDF and asks an LLM to summarise it into clear sections like Key Findings, Evidence & Methodology, Limitations & Improvements, Future Work, and Practical Implications.
- PDF upload: Drop in any research paper in PDF format.
- Automatic text extraction: Uses
PyPDF2to read the text from each page. - Structured summary: Short bullet-point sections designed to be skimmable.
- User‑friendly UI: Built with Streamlit; runs locally in your browser.
- Python 3.9+ installed
- An OpenAI API key (or compatible API) with access to the specified model
From the project folder (Context_builder):
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txtCreate a .env file in the project root with:
OPENAI_API_KEY=your_api_key_here
# Optional – override the default model:
OPENAI_MODEL=gpt-4.1-miniYou can also set these as normal environment variables instead of using a
.envfile.
From the project root:
streamlit run app.pyThen open the URL shown in the terminal (usually http://localhost:8501) in your browser.
- Upload a research paper PDF from the left sidebar.
- (Optional) Toggle Show extracted text preview to inspect what was read from the PDF.
- Click Generate Context Summary.
- Read the structured summary on the right side of the page.
Each segment is intentionally short and concise, making it easy to build context quickly and compare multiple papers.