Skip to content

0.5.0

Choose a tag to compare

@zrbyte zrbyte released this 18 Nov 15:17
· 5 commits to main since this release

0.5.0: Full-text summaries without paper-qa

pqa_summary no longer uses paper-qa. Each PDF's text is now extracted locally and summarized with one OpenAI call per paper. The model has to return JSON with a summary and a methods field. This is simpler, avoids the paper-qa breakage of past releases, and the model now reads the whole paper instead of a selection of passages.

Breaking changes

  • pqa_summary only summarizes when you pass --summarize, or summarize=True from Python. Before, the flag did nothing and the command always summarized. Without it, the command now only downloads PDFs. Add --summarize to any scheduled job that should keep producing summaries. The bundled GitHub Actions workflow and docker-compose.yml already have it.
  • paperqa.summary_llm is gone. paperqa.llm is the only model setting. Config validation warns about any leftover summary_llm key.
  • paper-qa is no longer a dependency. pypdf replaces it.

New

  • Optional paperqa.reasoning_effort setting (e.g. low, medium, high), passed to the model.
  • pqa_summary --rps now actually overrides the arXiv request rate. Before, it was ignored.
  • Default models are now GPT-6: gpt-6.2-sol in the bundled demo topic, gpt-6-luna in the example GitHub Actions config. A typical paper costs about $0.03 with gpt-6.2-sol and well under a cent with gpt-6-luna.

Upgrading

  1. Remove summary_llm from each topic's paperqa: section.
  2. Remove any "return JSON" instructions from your paperqa.prompt. The output format is now enforced automatically, so the prompt only needs to describe what to summarize. {ranking_query} is still substituted.
  3. If your prompt asked for JSON fields other than summary and methods, fold that content into the summary instructions. Only those two fields are stored and shown, which was also true before.
  4. Add --summarize wherever you run pqa_summary and want summaries.
  5. Reinstall to drop the old dependencies, e.g. pipx install --force paper_firehose.

The pqa_summary command name, the paperqa: config section and the paper_qa_summary database column keep their names, so existing databases and history viewers work unchanged.