← Back to Leaderboard
PFuture-House

Future-House/paper-qa

Agentic RAG for scientific papers with contextual evidence ranking and inline citations

Engineering Health (Methodology)
A+ · 92/100
Maintenance Activity
● Updated 4d ago
Latest Release
v2026.08.12
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption20/25
Release Cadence17/20
License Clarity20/20
CLIAPILocal AI
Total Stars
★ 9,736
24h Growth
+3
7d Growth
+62
Forks
969

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

Future-House/paper-qa Star History (2023-02-03 - 2026-12-04) ALL-TIME STAR HISTORY (2023-02 – 2026-12) +9.7k in 1400d · avg +7/day 10.3k 5.1k 0 2023-02-03: ★ 12023-04-29: ★ 2,1342023-07-29: ★ 2,7002023-10-28: ★ 2,9912024-01-27: ★ 3,2602024-04-27: ★ 3,4782024-07-27: ★ 3,6752024-10-26: ★ 6,0802025-01-25: ★ 6,6252025-04-26: ★ 7,0202025-07-26: ★ 7,4032025-10-25: ★ 7,6372026-01-24: ★ 7,9052026-04-25: ★ 8,3392026-07-25: ★ 8,8922026-12-04: ★ 9,736 ★ 9.7k 2023-02 2025-01 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

PaperQA2 is a Python RAG library and CLI, not primarily a database server. In the default workflow, an LLM formulates a keyword query to find candidate papers. The pipeline chunks and embeds those documents, retrieves the top k chunks against the embedded question, then has an LLM score and summarize each chunk in context. A re-ranking step selects the summaries used to generate an answer with inline citations.

The agent can repeat or reorder search and evidence gathering; a manual path lets the application control that sequence. The stack includes Tantivy for full-text search, a default NumPy vector store for evidence retrieval, and lmi over LiteLLM for model access. The packages/ workspace lists integrations for Docling, PyMuPDF, and pypdf, while external vector storage is an option rather than a prerequisite.

Key Capabilities & Differentiators

The ingestion scope covers PDFs, text, Microsoft Office documents, and source files, with scientific papers as the main use case. Metadata enrichment can incorporate citation counts and retraction checks, and embeddings can account for document metadata. Answers contain inline references that readers can check against the underlying evidence; the references do not guarantee that the answer interpreted the source correctly.

The default embedding model is OpenAI text-embedding-3-small. Settings.embedding can select a LiteLLM-compatible embedding model, local Sentence Transformers, or sparse and hybrid modes. Settings.answer.evidence_k sets the number of chunks retrieved for re-ranking and contextual summarization. Disabling evidence_retrieval fetches all chunks instead, an option to assess carefully as the corpus grows.

Trade-offs & Limitations

Compared with assembling a pipeline in LlamaIndex or LangChain, PaperQA2 provides a ready-made scientific literature workflow: bibliographic metadata, document search, evidence scoring, and cited answers. The trade-off is that agent search iterations and LLM-based summarization and re-ranking can add variable call counts, latency, and cost. Evaluate citation support and retrieval coverage on your own corpus; citations alone are not a measure of answer quality.

The NumPy backend avoids operating a separate vector service, but vector memory grows with the indexed chunks and embedding dimensions. Index reuse and embedding caching can reduce repeated work. When choosing an external store, benchmark retrieval and concurrency on the intended workload. Self-hosting generation removes that hosted model dependency only; hosted embeddings or bibliographic lookups may still send data outside your environment.

Hardware & Deployment Guide

Use Python 3.11 or newer for PaperQA2. Install paper-qa from PyPI and run pqa ask 'What is PaperQA2?' from a directory containing papers, or embed Settings and ask in a Python application. The default OpenAI path requires OPENAI_API_KEY; for self-hosted inference, configure a LiteLLM-compatible endpoint and select an embedding backend separately. The paper-qa[local] extra supports local embeddings.

For indexing on the order of 100 papers or more, consider CROSSREF_API_KEY and SEMANTIC_SCHOLAR_API_KEY to reduce exposure to public rate limits. Model rate limits can be set separately, for example with the tier1_limits CLI preset. The project moved to calendar versioning in December 2025 without implying backward compatibility across releases. The March 18, 2026 release loosened action typing to Message, and the August 12, 2026 release included a PyMuPDF typing fix. Pin deployments and regression-test integrations before upgrading.

Search layers: A local full-text index finds candidate papers; the default NumPy vector store ranks document chunks for evidence.
Evidence controls: Settings.answer.evidence_k sets the candidate count for re-ranking; disabling evidence_retrieval fetches all chunks instead.
Retrieval modes: hybrid- combines sparse keyword and dense embeddings, while sparse selects keyword embeddings alone.
Model routing: lmi uses LiteLLM for provider access, with separate model settings for generation, summarization, and agent decisions.
Bibliographic metadata: Crossref, Semantic Scholar, and Unpaywall are part of the metadata integration stack; multiple providers reduce reliance on a single lookup source.
Index lifecycle: The CLI indexes local papers, and the library supports index reuse, embedding caching, and external storage integrations.
Best For

Research teams and internal knowledge tools that need to question a curated paper collection and trace answers back to cited passages through a CLI or Python API.

Skip If

You mainly need a standalone vector database, a turnkey multi-tenant HTTP service, or a strictly offline deployment without separately configuring model, embedding, and metadata dependencies.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLIAPILocal AI
pip install paper-qa
mkdir my_papers
curl -o my_papers/PaperQA2.pdf https://arxiv.org/pdf/2409.13740
cd my_papers
pqa ask 'What is PaperQA2?'

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
paper-qa ★9.7k+62PythonApache-2.0Agentic RAG for scientific papers with contextual evidence ranking and inline ci
crawl4ai88.5k+408PythonApache-2.0Async browser crawler that turns web pages into Markdown and JSON for RAG
graphrag36.8k+68PythonMITA graph-based RAG pipeline for answering questions across documents
graphiti33.3k+143PythonApache-2.0Temporal graph framework for agent memory with traceable, evolving facts

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/Future-House/paper-qa.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

Future-House/paper-qa Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about paper-qa

How do I integrate PaperQA2 without handing search control to an agent?

Use from paperqa import Settings, ask to embed the question-answering workflow in a Python application. Use the manual, non-agent path if your application should control document selection and query sequencing. The Python API is an integration surface, not evidence of a bundled HTTP service.

What hardware and VRAM should I budget for?

With hosted generation and embeddings, size the PaperQA2 process for document parsing, index storage, NumPy vector memory, and concurrent requests rather than local model inference. With local embeddings or generation, compute and VRAM depend on the model and serving setup, plus the context length and concurrency you run. Measure a representative corpus and query workload before sizing production hardware.

Can we use PaperQA2 commercially and run it on our own infrastructure?

PaperQA2 is Apache-2.0 licensed, which permits commercial use and self-hosting. Follow the license's notice and redistribution requirements where applicable. Separately review model licenses, provider terms, and rights to process or redistribute the papers. Running a local model does not by itself keep bibliographic metadata lookups on premises.

When would I choose PaperQA2 over LlamaIndex or LangChain?

Choose PaperQA2 when paper metadata, query-specific evidence summaries, and inline citations are central to the product. Choose a general-purpose framework such as LlamaIndex or LangChain when you need to build broader workflows and want to assemble the retrieval and citation pipeline yourself. Test both on the same corpus and verify whether the cited passages actually support the answers.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining Future-House/paper-qa? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature Future-House/paper-qa on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare