Skip to main content

Load documents as fragments

Project description

llm-fragments-doc

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.0.tar.gz (135.7 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.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for llm_fragments_doc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bb4c9b918cd80436a9279e7e2efd33484ddead5543e9653aecc413ad869e73f7
MD5 25a82c6dbfee23dfb9f5da2da0bcbe61
BLAKE2b-256 38bc0c6549b67416e59032beed044b08f60b94226bf2bbb204f7764581b5136e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llm_fragments_doc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecf1cc1132a452d4df6e6b1a2c62c7af7e37654197697934b8f23cc32046a060
MD5 663762d8974d84ad19a2b8f8196d9a4d
BLAKE2b-256 ce967191af6b6c12d54779cc80962b2ff2efc9f9f9fdfd5a9172ada9f44918b6

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