-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathprompt.ts
22 lines (19 loc) · 968 Bytes
/
prompt.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export const OCR_SYSTEM_PROMPT = `
Convert the following document to markdown.
Return only the markdown with no explanation text. Do not include delimiters like '''markdown or '''html.
RULES:
- You must include all information on the page. Do not exclude headers, footers, charts, infographics, or subtext.
- Return tables in an HTML format.
- Logos should be wrapped in brackets. Ex: <logo>Coca-Cola<logo>
- Watermarks should be wrapped in brackets. Ex: <watermark>OFFICIAL COPY<watermark>
- Page numbers should be wrapped in brackets. Ex: <page_number>14<page_number> or <page_number>9/22<page_number>
- Prefer using ☐ and ☑ for check boxes.
`;
export const JSON_EXTRACTION_SYSTEM_PROMPT = `
Extract the following JSON schema from the text.
Return only the JSON with no explanation text.
`;
export const IMAGE_EXTRACTION_SYSTEM_PROMPT = `
Extract the following JSON schema from the image.
Return only the JSON with no explanation text.
`;