Skip to main content

Load documents as fragments

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_fragments_doc-0.1.1.tar.gz (156.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_fragments_doc-0.1.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file llm_fragments_doc-0.1.1.tar.gz.

File metadata

  • Download URL: llm_fragments_doc-0.1.1.tar.gz
  • Upload date:
  • Size: 156.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.14

File hashes

Hashes for llm_fragments_doc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1adf224aee580f4ae53cca26f97ad222ff70a11eef7e7cb5ed77c569af7093bc
MD5 8db94c86ee4529b7534c0613c8276636
BLAKE2b-256 81365e8b7fe2f1ee68a0251d1f217471a4e8e4a5ea0786289f4debeeabc6496e

See more details on using hashes here.

File details

Details for the file llm_fragments_doc-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_fragments_doc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5beb9f16471f6556874f1723460f6928494c5762d9f0579ef5e481915ba76372
MD5 1addd1e586ffd577fb58e196b9a91a48
BLAKE2b-256 c52ae81cab91bb4e615a6503f9849e15b9e07f180436c75d41feff3bb6e6007a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page