Skip to main content

A library for working with prompt templates locally or on the Hugging Face Hub.

Project description

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

  1. Provide a Python library that simplifies and standardises the sharing of prompts on the Hugging Face Hub.
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prompt_templates-0.0.7.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prompt_templates-0.0.7-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file prompt_templates-0.0.7.tar.gz.

File metadata

  • Download URL: prompt_templates-0.0.7.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

Hashes for prompt_templates-0.0.7.tar.gz
Algorithm Hash digest
SHA256 68a7f1aa1a12c3fcf63937e55d66c69431767e8deb863e053b2e2605021ccaf7
MD5 0897313f7b7d329cedb9129f46abe141
BLAKE2b-256 cf22b6b9767778177cdc926b5d84b9d36b8b61c279d1fbdd5ec11509171c70f5

See more details on using hashes here.

File details

Details for the file prompt_templates-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: prompt_templates-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 25.3 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

Hashes for prompt_templates-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 45bb0261222e73a367baf4032a7816008fbb3443002c95e894c8038574b35ba3
MD5 8aa984d3624b9806725fd0227babd328
BLAKE2b-256 38568e54efff5a7df270fb3c5d379a76daab93b29103c5b2f30543c1f3f60257

See more details on using hashes here.

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