This project implements the PaperQA2 agent and benchmarks its performance on the LitQA2 dataset using both OpenAI's GPT models and Meta's LLaMA models.
PaperQA2 is a modular Retrieval-Augmented Generation (RAG) system for answering scientific questions using source-grounded evidence. This repository reproduces the evaluation pipeline described in Skarlinski et al. (2024), specifically focusing on:
git clone https://github.com/Future-House/paper-qa.git
cd paper-qa
uv sync
Restart the terminal:
source .venv/bin/activate
curl -sS https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip install -r requirements.txt
.env file and set the following environment variables for external servicesOPENAI_API_KEY=sk-xxxOPENREVIEW_USERNAME=your_usernameOPENREVIEW_PASSWORD=your_passwordUNPAYWALL_EMAIL=your_email@example.comhuggingface-cli login in terminal, then enter your token to authenticate with Hugging FaceYou should prepare PDFs locally to support the benchmark experiments.
python src/run_litqa_gpt.py
python src/run_litqa_ollama.py
Most experiments were run on a personal machine with:
LLaMA experiments faced some performance and timeout challenges. Details can be found in record/llama_experiment_record.md
[Skarlinski et al., 2024]
Language agents achieve superhuman synthesis of scientific knowledge
arXiv:2409.13740
[Lála et al., 2023]
PaperQA: Retrieval-Augmented Generative Agent for Scientific Research
arXiv:2312.07559
[Narayanan et al., 2024]
Aviary: training language agents on challenging scientific tasks
arXiv:2412.21154
1 commits
Jupyter Notebook
98.7%
Python
1.3%
This project implements the PaperQA2 agent and benchmarks its performance on the LitQA2 dataset using both OpenAI's GPT models and Meta's LLaMA models.
PaperQA2 is a modular Retrieval-Augmented Generation (RAG) system for answering scientific questions using source-grounded evidence. This repository reproduces the evaluation pipeline described in Skarlinski et al. (2024), specifically focusing on:
git clone https://github.com/Future-House/paper-qa.git
cd paper-qa
uv sync
Restart the terminal:
source .venv/bin/activate
curl -sS https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip install -r requirements.txt
.env file and set the following environment variables for external servicesOPENAI_API_KEY=sk-xxxOPENREVIEW_USERNAME=your_usernameOPENREVIEW_PASSWORD=your_passwordUNPAYWALL_EMAIL=your_email@example.comhuggingface-cli login in terminal, then enter your token to authenticate with Hugging FaceYou should prepare PDFs locally to support the benchmark experiments.
python src/run_litqa_gpt.py
python src/run_litqa_ollama.py
Most experiments were run on a personal machine with:
LLaMA experiments faced some performance and timeout challenges. Details can be found in record/llama_experiment_record.md
[Skarlinski et al., 2024]
Language agents achieve superhuman synthesis of scientific knowledge
arXiv:2409.13740
[Lála et al., 2023]
PaperQA: Retrieval-Augmented Generative Agent for Scientific Research
arXiv:2312.07559
[Narayanan et al., 2024]
Aviary: training language agents on challenging scientific tasks
arXiv:2412.21154
1 commits
Jupyter Notebook
98.7%
Python
1.3%