Skip to content
Merged
Show file tree
Hide file tree
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
Simplified prompting around Markdown table text
  • Loading branch information
jamesbraza committed Oct 27, 2025
commit c77d0b34a0719c7fb1b0d4f67a76c18e72680b36
2 changes: 1 addition & 1 deletion src/paperqa/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ async def _map_fxn_summary( # noqa: PLR0912
text_with_tables_prompt_template.format(
text=cleaned_text,
citation=citation,
tables="\n\n----\n\n".join(media_text),
tables="\n\n".join(media_text),
)
if media_text
else cleaned_text
Expand Down
2 changes: 1 addition & 1 deletion src/paperqa/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
text_with_tables_prompt_template = (
"{text}\n\n------------\n\nMarkdown tables from {citation}."
Comment thread
jamesbraza marked this conversation as resolved.
" If the markdown is poorly formatted, defer to the images"
"\n\n------------\n\n{tables}"
"\n\n{tables}"
)

summary_json_prompt = (
Expand Down