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.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-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for llm_templates_fabric-0.2.tar.gz
Algorithm Hash digest
SHA256 519009242c000ea557b3a34aff7410520859151a3de5abbfd6d5cd21f508e663
MD5 23357f30a2cb8a2eceec3f68691b71df
BLAKE2b-256 f26a644e3e7aa4523d7ef8f03d50887637184fc496ff83b98b4f09f8ed8bd364

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_templates_fabric-0.2.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-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_templates_fabric-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1163cb26bb76fcb42100c8dd217f03de6f6bb6ba6570bab3e77bc2b9f70fc7c3
MD5 9f57cef2e6730e87a91b1906a8918ec3
BLAKE2b-256 056fead52297a7d48cc350b1cf6642c76289ae425881d56e11ef28bd920defce

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_templates_fabric-0.2-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