Load LLM templates from Fabric
Project description
llm-templates-fabric
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:
- System prompt: https://github.com/danielmiessler/fabric/blob/main/patterns/summarize/system.md
- User prompt: https://github.com/danielmiessler/fabric/blob/main/patterns/summarize/user.md
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
519009242c000ea557b3a34aff7410520859151a3de5abbfd6d5cd21f508e663
|
|
| MD5 |
23357f30a2cb8a2eceec3f68691b71df
|
|
| BLAKE2b-256 |
f26a644e3e7aa4523d7ef8f03d50887637184fc496ff83b98b4f09f8ed8bd364
|
Provenance
The following attestation bundles were made for llm_templates_fabric-0.2.tar.gz:
Publisher:
publish.yml on simonw/llm-templates-fabric
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_templates_fabric-0.2.tar.gz -
Subject digest:
519009242c000ea557b3a34aff7410520859151a3de5abbfd6d5cd21f508e663 - Sigstore transparency entry: 193680079
- Sigstore integration time:
-
Permalink:
simonw/llm-templates-fabric@5a8d70641c7fd8b04b6db2bd9c60c622dd721074 -
Branch / Tag:
refs/tags/0.2 - Owner: https://github.com/simonw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5a8d70641c7fd8b04b6db2bd9c60c622dd721074 -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_templates_fabric-0.2-py3-none-any.whl.
File metadata
- Download URL: llm_templates_fabric-0.2-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1163cb26bb76fcb42100c8dd217f03de6f6bb6ba6570bab3e77bc2b9f70fc7c3
|
|
| MD5 |
9f57cef2e6730e87a91b1906a8918ec3
|
|
| BLAKE2b-256 |
056fead52297a7d48cc350b1cf6642c76289ae425881d56e11ef28bd920defce
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_templates_fabric-0.2-py3-none-any.whl -
Subject digest:
1163cb26bb76fcb42100c8dd217f03de6f6bb6ba6570bab3e77bc2b9f70fc7c3 - Sigstore transparency entry: 193680081
- Sigstore integration time:
-
Permalink:
simonw/llm-templates-fabric@5a8d70641c7fd8b04b6db2bd9c60c622dd721074 -
Branch / Tag:
refs/tags/0.2 - Owner: https://github.com/simonw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5a8d70641c7fd8b04b6db2bd9c60c622dd721074 -
Trigger Event:
release
-
Statement type: