Skip to main content

An experimental library for working with prompts 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

hf_hub_prompts-0.0.5.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

hf_hub_prompts-0.0.5-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file hf_hub_prompts-0.0.5.tar.gz.

File metadata

  • Download URL: hf_hub_prompts-0.0.5.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for hf_hub_prompts-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d4e45db58b613d003f125618016664d41cad65ed3ae32da73a44481e4d9dd878
MD5 48018d791c398cf4efd111a978c941ea
BLAKE2b-256 3306b8261d43d3a6e1adbd43a1cb80c5fc30ddea2467a2171edd04fa514479d1

See more details on using hashes here.

File details

Details for the file hf_hub_prompts-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: hf_hub_prompts-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for hf_hub_prompts-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 90cc5a6c36f0f5c907b13b662b824a5b72e1fb74111b685b4d47bffb9111c835
MD5 cd5b45a10c92519eb3caaa16d164f7de
BLAKE2b-256 fd8186511d25479411b899431d325ca73486d2821555a8a3dd790a16ffeec12c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page