Load documents as fragments. Uses docling for parsing.
Install this plugin in the same environment as LLM.
llm install llm-fragments-doc
Use -f doc:/path/to/my/file.pdf
to include a markdown-converted version of your file as a fragment.
llm -f doc:https://pdfobject.com/pdf/sample.pdf 'What kind of document is this?'
To set up this plugin locally, first checkout the code, then install:
cd llm-fragments-doc
uv run llm install -e .
Install:
uv run pre-commit install
Run tests:
uv run pytest