Skip to main content

Load LLM templates from Fabric

Project description

llm-templates-fabric

PyPI Changelog Tests License

Load LLM templates from Fabric

Installation

Install this plugin in the same environment as LLM.

llm install llm-templates-fabric

Usage

This plugin adds a template loader with the fabric: prefix that loads templates from the Fabric repository.

In this example, we use the summarize pattern for the Wikipedia Application software page.

llm -t fabric:summarize -f https://en.wikipedia.org/wiki/Application_software

The plugin looks for templates in the Fabric repository's patterns/ directory. The command above will load from:

Both files are optional - if at least one of them exists, the template will load successfully.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-templates-fabric
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

python -m 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_templates_fabric-0.2.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

llm_templates_fabric-0.2.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file llm_templates_fabric-0.2.1.tar.gz.

File metadata

  • Download URL: llm_templates_fabric-0.2.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for llm_templates_fabric-0.2.1.tar.gz
Algorithm Hash digest
SHA256 eb4d84ea39f68c98c7c76abf1fe55dd21101ffdd99b0ff677631b7ff58ed9fa6
MD5 7e3f8daee644b1cc80b0c0712d5279ad
BLAKE2b-256 98462259bdd718c086da55a037040cecf3eb73d04639d96a2052bdcdde2529b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_templates_fabric-0.2.1.tar.gz:

Publisher: publish.yml on simonw/llm-templates-fabric

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_templates_fabric-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_templates_fabric-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a87b6d2137c4fa4f50c569233679768fac958f6c3acc775a813d792069cffd0
MD5 cd161cc170078f8d28931e2dc4021fe6
BLAKE2b-256 2480969923ddd3ed7e9767e31c36d9abdd8b06cbf41adfdb3089983ff95835e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_templates_fabric-0.2.1-py3-none-any.whl:

Publisher: publish.yml on simonw/llm-templates-fabric

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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