Skip to content

Commit ea73701

Browse files
author
colinmcneil
committed
Add marker-pdf prompt in testing
1 parent 8812668 commit ea73701

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

prompts/markder-pdf.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
name: Marker PDF Converter
3+
description: Marker converts PDF documents to markdown, JSON, and HTML quickly and accurately. Converts PDF, image, PPTX, DOCX, XLSX, HTML, EPUB files in all languages. Formats tables, forms, equations, inline math, links, references, and code blocks. Extracts and saves images. Removes headers/footers/other artifacts.
4+
tools:
5+
- name: marker_single
6+
description: Convert a single pdf file to markdown
7+
parameters:
8+
type: object
9+
properties:
10+
marker_args:
11+
type: array
12+
items:
13+
type: string
14+
description: The arguments to pass to the marker command. If the user does not provide a place to save the output, use /thread/marker as the default output location.
15+
required:
16+
- marker_args
17+
container:
18+
image: jdamp/marker:latest
19+
command:
20+
- poetry
21+
- run
22+
- python
23+
- convert_single.py
24+
- "{{marker_args|into}}"
25+
- name: marker
26+
description: Convert a directory of pdf files to markdown. You can also use `--workers n` to convert multiple files in parallel, where `n` is the number of workers to use. If the user does not provide a place to save the output, use /thread/marker as the default output location.
27+
parameters:
28+
type: object
29+
properties:
30+
marker_args:
31+
type: array
32+
items:
33+
type: string
34+
description: The arguments to pass to the marker command.
35+
required:
36+
- marker_args
37+
container:
38+
image: jdamp/marker:latest
39+
command:
40+
- poetry
41+
- run
42+
- python
43+
- convert.py
44+
- "{{marker_args|into}}"
45+
---
46+
47+
# prompt
48+
49+
I have a pdf in /thread/Building-a-Sustainable-Business_2024.pdf. Can you convert it to markdown?

0 commit comments

Comments
 (0)