Skip to content

Conversation

@jamesbraza
Copy link
Collaborator

This PR adds a prompt template for full-page screenshots

@jamesbraza jamesbraza self-assigned this Oct 31, 2025
Copilot AI review requested due to automatic review settings October 31, 2025 00:32
@jamesbraza jamesbraza added the enhancement New feature or request label Oct 31, 2025
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Oct 31, 2025
@dosubot
Copy link

dosubot bot commented Oct 31, 2025

Related Documentation

Checked 1 published document(s) in 1 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the media enrichment prompt templates to distinguish between individual media items (images/tables) and full-page screenshots. The changes rename the existing prompt template and add a new one for future full-page screenshot support.

  • Renames media_enrichment_prompt_template to individual_media_enrichment_prompt_template for clarity
  • Adds new full_page_enrichment_prompt_template for full-page screenshot enrichment
  • Updates import and usage in settings to reflect the renamed template

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/paperqa/prompts.py Renames media enrichment prompt to individual_media_enrichment_prompt_template and adds new full_page_enrichment_prompt_template
src/paperqa/settings.py Updates import and default value to use renamed individual_media_enrichment_prompt_template
Comments suppressed due to low confidence (1)

src/paperqa/prompts.py:1

  • The newly added full_page_enrichment_prompt_template is not imported or used anywhere in the codebase yet. Consider adding a docstring or comment explaining that this template is for future use with full-page screenshot parsing, or complete the implementation by importing and using it in the appropriate places.
from datetime import datetime

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@maykcaldas maykcaldas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small comment. Approving it

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 31, 2025
@jamesbraza jamesbraza merged commit 3b54505 into main Oct 31, 2025
7 checks passed
@jamesbraza jamesbraza deleted the full-page-prompt branch October 31, 2025 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants