HF Hub Prompts
Prompts have become a key artifact for researchers and practitioners working with AI. There is, however, no standardized way of sharing prompts. Prompts are shared on the HF Hub in .txt files, in HF datasets, as strings in model cards, or on GitHub as python strings, in JSON, YAML, or in Jinja2.
Objectives and Non-Objectives of this library
Objectives
- Provide a Python library that simplifies and standardises the sharing of prompts on the Hugging Face Hub.
- Start an open discussion on the best way of standardizing and encouraging the sharing of prompts on the HF Hub, building upon the HF Hub's existing repository types and ensuring interoperability with other prompt-related libraries.
Non-Objectives:
- Compete with full-featured prompting libraries like LangChain, ell, etc. The objective is, instead, a simple solution for sharing prompts on the HF Hub, which is compatible with other libraries and which the community can build upon.
Quick Start
pip install hf-hub-prompts
For examples of the core functionality, see the docs.
Main use-case scenarios on the HF Hub
For use-case examples with all repository types on the Hugging Face Hub, see the docs.
The standardized YAML or JSON prompt template format
For a discussion of the standardized YAML or JSON prompt template format, see the docs.
TODO
- many things ...
Metadata
Release files for hf-hub-prompts 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hf_hub_prompts-0.0.7.tar.gz | 22.8 kB | Without provenance | Details for hf_hub_prompts-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hf_hub_prompts-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for hf_hub_prompts-0.0.7-py3-none-any.whl |
Total release size: 46.8 kB
Release files / hf_hub_prompts-0.0.7.tar.gz
| Download URL | hf_hub_prompts-0.0.7.tar.gz |
|---|---|
| Size | 22.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8565bf8ac3b6d812b54dd22162e13912d0d49250c544c01c854e835b802ef34d
|
|
BLAKE2b-256 checksum How to use checksums |
6b01796c3bb92f3d03a489e0d1ffeb144dac4605d725e62be1dcd212726a9df3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure
|
Release files / hf_hub_prompts-0.0.7-py3-none-any.whl
| Download URL | hf_hub_prompts-0.0.7-py3-none-any.whl |
|---|---|
| Size | 24.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f4d7dc9bf4e0d2540732966e6f48fcc09dee5f65e3ce55483dac4c0a4ccfb59e
|
|
BLAKE2b-256 checksum How to use checksums |
441b5d80e16c25d943a0a17a4da425f1952e1f9724325556b8fe729baa3666eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure
|
Security for hf-hub-prompts 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.