The function writes a markdown file at the `file` location with the decisions extracted from the PDF inputs via the LLM. The decisions are formatted as a JSON block. See the LLM prompt file `system.file("prompt.md", package = "dossier") |> readLines()` for more details. To setup the authentication for the LLM, please refer to the `ellmer` package.

extract_decisions(prompt_file, pdf, file = NULL, ..., llm_model = "gemini")

Arguments

prompt_file

A single string containing the prompt

pdf

A single string specifying the path to a PDF file

file

A single string specifying where to save the output. By default, it saves a markdown file with the same name as the PDF file in the same directory.

...

other arguments supplied to the LLM chat function, such as `seed`, `temperature`, etc.

llm_model

One of `"claude"` or `"gemini"` for processing pdf documents. Default to `gemini`

Value

Writes output to the specified file.

See also

[clean_md]