L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Documents · SKILL.md

paper-qa

paper-qa

Use PaperQA/PaperQA2 for scientific literature RAG, document parsing, metadata hydration, CLI indexing, Settings configuration, and external paper/trial source workflows.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: paper-qa description: "Use PaperQA/PaperQA2 for scientific literature RAG, document parsing, metadata hydration, CLI indexing, Settings configuration, and external paper/trial source workflows." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

PaperQA Repo Skill

Use this repo skill when a task involves PaperQA/PaperQA2: high-accuracy retrieval-augmented question answering over scientific papers and local documents, the pqa CLI, document parsing/chunking, metadata providers, named Settings, model/embedding configuration, and literature-source helpers.

Install and readiness

PaperQA requires Python 3.11+. For normal use install the public package:

python -m pip install "paper-qa>=5"

Use optional extras only for the workflows you need:

python -m pip install "paper-qa[local]"          # sentence-transformers local embeddings
python -m pip install "paper-qa[qdrant]"         # Qdrant vector store
python -m pip install "paper-qa[office]"         # docx/xlsx/pptx parsing
python -m pip install "paper-qa[pymupdf]"        # PyMuPDF PDF reader
python -m pip install "paper-qa[docling]"        # Docling PDF reader
python -m pip install "paper-qa[nemotron]"       # NVIDIA nemotron-parse reader API
python -m pip install "paper-qa[zotero]"         # Zotero helper
python -m pip install "paper-qa[openreview]"     # OpenReview helper

Minimal import check:

python - <<'PY'
import paperqa
from paperqa import Docs, Settings
print(paperqa.__version__)
print(Settings().answer.evidence_k)
PY

For a broader no-network readiness check, run scripts/check_paperqa_env.py.

Choose a sub-skill

Task intentRead
Use Python APIs such as Docs, ask, agent_query, Docs.aadd_texts, Docs.aget_evidence, Docs.aquery, callbacks, contexts, answers, or sessionsagentic-rag
Parse and chunk PDFs, text, Markdown/code, HTML, Office docs, images, multimodal media, or choose a PDF reader extradocs-and-parsing
Operate the pqa CLI, build/search/reuse indexes, validate manifest CSVs, manage PQA_HOME, or inspect CLI flagscli-and-indexing
Configure Settings, named configs, LiteLLM providers, local model servers, embeddings, prompts, vector stores, or optional dependency choicessettings-and-configuration
Use metadata clients, DOI/title hydration, Crossref/Semantic Scholar/OpenAlex/Unpaywall, ClinicalTrials.gov, OpenReview, or Zotero helpersmetadata-and-sources

Common operating routes

  • For a local folder of PDFs and a natural-language question, use pqa ask or paperqa.ask after configuring provider credentials and index paths.
  • For a controlled Python pipeline, build a Docs() object, add Doc/Text objects or local files, then call await docs.aget_evidence(...) or await docs.aquery(...).
  • For no-network tests, use pre-chunked Text objects with Settings(parsing={"defer_embedding": True}) and the bundled smoke scripts; do not treat these as answer-quality validation.
  • For custom providers, update every active model role: llm, summary_llm, agent.agent_llm, embedding, and any parser enrichment LLM.
  • For reproducible indexes, set PQA_HOME or agent.index.index_directory, decide whether the paper directory should remain relative, and validate manifest CSVs before long indexing runs.

Cross-cutting cautions

  • Default answering workflows call LLM, embedding, and sometimes metadata-provider services. Confirm credentials, network policy, rate limits, and cost before running pqa ask, Docs.aquery, ask, or agent_query.
  • Passing citation/title/DOI metadata and disabling metadata hydration can prevent unintended metadata-provider calls during controlled local ingestion.
  • Optional parser extras vary by dependency weight, service credentials, output quality, and license; choose them deliberately rather than installing all extras.
  • If a task names PaperQA source staleness or repository edits, first read references/repo-provenance.md and compare the current package/repo version to this skill's baseline.
  • For install/import/provider/index failures that cut across sub-skills, use references/troubleshooting.md before drilling into workflow-specific troubleshooting.

Provenance and routing metadata

Skills enregistrées