Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Created full page enrichment prompt
  • Loading branch information
jamesbraza committed Oct 31, 2025
commit ed2102fa4e62588f69766cfc1e6d33ae9bda6ef8
18 changes: 18 additions & 0 deletions src/paperqa/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,3 +198,21 @@
"\n\n{context_text}Describe the media," # Allow for empty context_text
" or if uncertain on a description please state why:"
)
full_page_enrichment_prompt_template = (
"You are analyzing a screenshot of a page from a scientific document."
" Provide a detailed description that will be used to answer questions about its content."
" Focus on key elements, data, relationships, and scientific insights visible in the image."
" It's especially important to document referential information such as"
" figure/table numbers, labels, plot colors, or legends."
"\n\nText co-located with the screenshot may be associated with"
" other page's content and unrelated,"
" so do not just blindly quote referential information."
" To restate, the co-located text is several pages of content,"
" so only use aspects relevant to the accompanying screenshot."
" Do not feel the need to extensively document entities in the margins"
" such as journal logos, display type, margin boxes, or PDF design elements."
" If the screenshot is garbled due to a bad screenshot,"
" describe the screenshot as garbled, state why it's considered garbled."
"\n\n{context_text}Describe the screenshot," # Allow for empty context_text
" or if uncertain on a description please state why:"
)
Loading