Skip to content
Next Next commit
Simplified prompting around Markdown table text
  • Loading branch information
jamesbraza committed Oct 27, 2025
commit 3189dcdbf3cbd863a5d95dd38232fac71de23b0d
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}."
" If the markdown is poorly formatted, defer to the images"
"\n\n------------\n\n{tables}"
"\n\n{tables}"
)

summary_json_prompt = (
Expand Down