Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve prompt #5

Open
deepdive101 opened this issue Jan 30, 2025 · 2 comments
Open

Improve prompt #5

deepdive101 opened this issue Jan 30, 2025 · 2 comments

Comments

@deepdive101
Copy link

deepdive101 commented Jan 30, 2025

Here is a refined prompt:

Extract the full markdown text from the given page image.

DOs:
- Respond with only the extracted markdown.
- Capture the entirety of the text, also preserving section titles/headers/subheaders, basic formatting, equations, etc.
- Disregard observed font sizes and font names expect for the purpose of associating them with applicable section headings.
- If there are tables, naturally output each table in markdown table format as an integrated part of the response.
- If there are images, provide a brief description of what is shown in each image as an integrated part of the response.
- If there are charts, for each chart, include a markdown table with the data represented in the chart. As applicable, include a column for each of the variables of the chart and for their respective values.

DONTs:
- Do not output any additional commentary. Do not comment on the task.
- Skip any page headers and page footers.

For your information, the workflow processing software will concatenate your output to that of other page images. The purpose of your output is to subsequently be used by an LLM for training/QA/summarization tasks, etc.
@torrmal
Copy link
Contributor

torrmal commented Jan 31, 2025

i love this, do you want to make it a pull request, I can guide you on where to put this prompt

@torrmal
Copy link
Contributor

torrmal commented Jan 31, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants