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 f: prefix that loads templates from the Fabric repository.

# Use a Fabric template with LLM
llm -t f:explain explain_code

The plugin looks for templates in the Fabric repository's patterns/ directory. For example, 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.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.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_templates_fabric-0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d3edc662fee3df216ef8f393dd828f7fc81c1191f7128191198ee4efa480d120
MD5 eb6c36817756dd688cb01c054866489b
BLAKE2b-256 433b0245b0cb80ee4fdbef188aeb13d3074f2e74e577f6612e8778c6aa30019d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for llm_templates_fabric-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3fef7e0a0d3a3174dfa866e3381e2fced902a0551f7b8cbf2650c62b5b27927
MD5 0f4671f7b720afbe1d44dbb4aaaf030f
BLAKE2b-256 1adbf6b930c0dfd68a172fc026af9e0a2405a66d845416612c00686ff998e707

See more details on using hashes here.

Provenance

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