Skip to content

mbode/llm-fragments-doc

Repository files navigation

llm-fragments-doc

PyPI Changelog Tests License

Load documents as fragments. Uses docling for parsing.

Installation

Install this plugin in the same environment as LLM.

llm install llm-fragments-doc

Usage

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?'

Development

Local Setup

To set up this plugin locally, first checkout the code, then install:

cd llm-fragments-doc
uv run llm install -e .

Linting & formatting via pre-commit

Install:

uv run pre-commit install

Tests

Run tests:

uv run pytest

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages