A simple question-answering system for PDF documents, similar to chatPDF. Upload a PDF and ask questions about its content.
The system can handle different types of questions about PDF documents:
-
Direct questions - Questions that can be matched directly to text in the document
- "What is CDE?"
- "Which datasets are used for evaluation?"
-
Indirect questions - Questions requiring interpretation and synthesis
- "Why should we use the proposed method?"
-
Reference identification - Finding key references that inspire methodologies
Simple command-line interface for asking questions about PDF documents.
- Install dependencies:
pip install -r requirements.txt
- Set your Gemini API key in environment variables
- Run:
python main.py chat your_document.pdf
Test with the included research papers:
BERT Paper Questions:
- What kind of neural network architecture is used?
- What datasets have been used for evaluation?
- What are the main discoveries?
- What is the key insight of the proposed method?
Similar questions can be asked for the other included papers.