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.6.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

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

hf_hub_prompts-0.0.6-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hf_hub_prompts-0.0.6.tar.gz
  • Upload date:
  • Size: 17.7 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.6.tar.gz
Algorithm Hash digest
SHA256 b5ffe567833972f198c7778d77c6f2570f25ea44a60d780c7b43c769d9398d1f
MD5 cb1be62cb4df0e1386b9ff29ed345b72
BLAKE2b-256 40e5ce782e94f211bceff53cb56c1aee399eceda31cf9dda62a84a9e61508aae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hf_hub_prompts-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 18.7 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 decef95342e466417c6cc26f048fdca12efbf43d003d0227e35e1f45756ad152
MD5 6931c346d607f2439213d35426d146dd
BLAKE2b-256 aff4c6b611e8b4b4acd839f9a6d0c265ec3f9868abbba0a1fd3d6da4e7326b8c

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