Mindket

Question Answering from PDFs

Newversion 1 · updated

Overview

A Gradio app that answers questions from PDF files using a retrieval model and a SQuAD2 reading model, with two sample PDFs included. Suits people who want to try document question answering in a browser.

Question Answering from PDFs is a kit in the Research category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Nothing to install for the online version
  • Python on your computer for a local copy
  • The packages listed in requirements.txt
Runs in
  • A web browser, on the Space's page on Hugging Face
  • Python on Windows, macOS or Linux, using a downloaded copy
Start with
pip install -U huggingface_hub
hf download ThePixOne/open_domain_qa --repo-type space --local-dir open_domain_qa
cd open_domain_qa

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

Question Answering from PDFs is a Gradio app by ThePixOne. It names a large roberta model trained on SQuAD2 and a multi-qa MPNet sentence model. The repository holds two sample PDFs, one on China and one on London, plus two text files. By its title, you ask a question and it answers from the PDFs. The page has no description, so the exact flow is not confirmed.

Who it suits

People who want to see question answering over documents working, and developers who want a compact example that combines two models in a Gradio page.

IndustryWho uses itHow they use itExample
EducationStudents of language modelsRun the demo and read app.py to see how the two models cooperateAsk a question about the London sample
SoftwareDevelopersUse the project as a pattern for a Gradio document question toolSwap the sample PDFs for their own
ResearchLanguage researchersTry an open question answering setup on a few documentsAsk the same question of both sample PDFs

Skip it if you need answers you can trust without checking the source page, because the models can pick the wrong passage.

Where to use it

  • A web browser, on the Space's page on Hugging Face
  • Python on Windows, macOS or Linux, using a downloaded copy
Use caseWhoWhat they get back
Ask questions of sample PDFs onlineAnyone curiousAn answer drawn from the bundled documents
Study a two model question answering demoDevelopersA short Python project that pairs two named models

How to set it up

  • Nothing to install for the online version
  • Python on your computer for a local copy
  • The packages listed in requirements.txt
  1. Install the Hugging Face hub package.
  2. Download the Space's files to a folder.
  3. Move into that folder.
  4. Install gradio, then the packages from requirements.txt.
  5. Start the app with app.py.
pip install -U huggingface_hub
hf download ThePixOne/open_domain_qa --repo-type space --local-dir open_domain_qa
cd open_domain_qa
pip install gradio
pip install -r requirements.txt
python app.py

How to use it

Open the Space page in a browser and type a question into the page. For a local copy, run the app and open the page Gradio opens for you.

python app.py
ToolWhat it does
python app.pyStarts the Gradio app on your computer
hf downloadCopies the Space's files into a local folder

Example

Open the Space and ask a plain question about London, such as its size or history. The app should answer from the London sample PDF. The page does not say how answers are shown, so use what the page displays.

For newcomers and experts

If you are new to this, ask one short factual question about a topic in the sample PDFs and check the answer against the PDF. Then try a question the PDFs do not cover and see what happens.

If you know the field, the pairing suggests a SQuAD2 reader, roberta-large-squad2, behind a multi-qa MPNet retriever. A dot-product sentence embedder would pick passages first, then the reader would pull out an answer. The page does not confirm this.

  1. You type a question
  2. The MPNet model finds passages
  3. The roberta model reads them
  4. Gradio shows the answer

Good to know

  • The page gives no description, accuracy figures or limits on PDF size.
  • The online version needs nothing installed, and a local copy needs Python.
  • License: wtfpl.
  • Cost to run: none named, only the packages in requirements.txt.
  • Data it reaches: the sample PDFs in its repository and the question you type. A local copy downloads the two models from Hugging Face.
  • Not for: the source names none. Check each answer against the PDF page it came from.

README and files

README

Question Answering from PDFs

A Gradio app that answers questions from PDF files using a retrieval model and a SQuAD2 reading model, with two sample PDFs included. Suits people who want to try document question answering in a browser.

Made by ThePixOne on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: Question Answering from PDFs is a Gradio app by ThePixOne. It names a large roberta model trained on SQuAD2 and a multi-qa MPNet sentence model. The repository holds two sample PDFs, one on China and one on London, plus two text files. By its title, you ask a question and it answers from the PDFs. The page has no description, so the exact flow is not confirmed.

Who it suits: People who want to see question answering over documents working, and developers who want a compact example that combines two models in a Gradio page.

Industry | Who uses it | How they use it | Example
Education | Students of language models | Run the demo and read app.py to see how the two models cooperate | Ask a question about the London sample
Software | Developers | Use the project as a pattern for a Gradio document question tool | Swap the sample PDFs for their own
Research | Language researchers | Try an open question answering setup on a few documents | Ask the same question of both sample PDFs

Skip it if you need answers you can trust without checking the source page, because the models can pick the wrong passage.

Where to use it:

  • A web browser, on the Space's page on Hugging Face
  • Python on Windows, macOS or Linux, using a downloaded copy
Use case | Who | What they get back
Ask questions of sample PDFs online | Anyone curious | An answer drawn from the bundled documents
Study a two model question answering demo | Developers | A short Python project that pairs two named models

How to set it up:

  • Nothing to install for the online version
  • Python on your computer for a local copy
  • The packages listed in requirements.txt
  1. Install the Hugging Face hub package.
  2. Download the Space's files to a folder.
  3. Move into that folder.
  4. Install gradio, then the packages from requirements.txt.
  5. Start the app with app.py.
pip install -U huggingface_hub
hf download ThePixOne/open_domain_qa --repo-type space --local-dir open_domain_qa
cd open_domain_qa
pip install gradio
pip install -r requirements.txt
python app.py

How to use it: Open the Space page in a browser and type a question into the page. For a local copy, run the app and open the page Gradio opens for you.

python app.py
Tool | What it does
python app.py | Starts the Gradio app on your computer
hf download | Copies the Space's files into a local folder

Example: Open the Space and ask a plain question about London, such as its size or history. The app should answer from the London sample PDF. The page does not say how answers are shown, so use what the page displays.

For newcomers and experts: If you are new to this, ask one short factual question about a topic in the sample PDFs and check the answer against the PDF. Then try a question the PDFs do not cover and see what happens.

If you know the field, the pairing suggests a SQuAD2 reader, roberta-large-squad2, behind a multi-qa MPNet retriever. A dot-product sentence embedder would pick passages first, then the reader would pull out an answer. The page does not confirm this.

You type a question
The MPNet model finds passages
The roberta model reads them
Gradio shows the answer

Good to know:

  • The page gives no description, accuracy figures or limits on PDF size.
  • The online version needs nothing installed, and a local copy needs Python.
  • License: wtfpl.
  • Cost to run: none named, only the packages in requirements.txt.
  • Data it reaches: the sample PDFs in its repository and the question you type. A local copy downloads the two models from Hugging Face.
  • Not for: the source names none. Check each answer against the PDF page it came from.

On Hugging Face, 13 November 2026

  • Likes: 31
  • Built with: gradio
  • License: wtfpl

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  4 KB

1 file, 4 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
Question Answering from PDFs This page31gradiowtfpl
Open VLM LeaderboardShares gradio1,034gradioapache-2.0
Face SwapShares gradio808gradiocc-by-nc-sa-4.0
TTS Spaces ArenaShares gradio493gradiozlib
Depth Anything 3Shares gradio490gradiocc-by-nc-4.0
BLIPShares gradio431gradiobsd-3-clause
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

Searched

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Research

See all in Research

EarthJev

dBenf · Kit

Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…

New

getting-over-it-rl-jax

zimmerk4 · Kit

Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…

New

ReFoCo

yuji-nozawa · Kit

Pretrained vision transformer checkpoints in three sizes from a research paper on training attention heads to focus on image regions. For researchers who extra…

New