A library for working with prompt templates locally or on the Hugging Face Hub.
Project description
Prompt Templates
Prompt templates have become key artifacts for researchers and practitioners working with AI. There is, however, no standardized way of sharing prompt templates. Prompts and prompt templates are shared on the HF Hub in .txt files, in HF datasets, as strings in model cards, or on GitHub as python strings embedded in scripts, in JSON, YAML, or in Jinja2 files.
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 ...
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 prompt_templates-0.0.8.tar.gz.
File metadata
- Download URL: prompt_templates-0.0.8.tar.gz
- Upload date:
- Size: 24.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0ef5ab3752eb6e161007a2f42473e5e0d1d94aa6d9b0c1cc0191d7be401edcd
|
|
| MD5 |
fe14ab5565d9f8972b94b140b6a92877
|
|
| BLAKE2b-256 |
7bfd5af4266c1e9a14178e18faabf91f51417b515a1a0644e13396523b3bd0f9
|
File details
Details for the file prompt_templates-0.0.8-py3-none-any.whl.
File metadata
- Download URL: prompt_templates-0.0.8-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58c653c5d5ad7672334f35143d279c7c8a399aa7a673193cc601ba5fb3fb0f86
|
|
| MD5 |
299050a24bce6c4daa51d6a3f2104531
|
|
| BLAKE2b-256 |
6912224518b268a23dac514af6d3e809055ef4b65825662d32d01b209d29903b
|