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.7.tar.gz (22.8 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.7-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hf_hub_prompts-0.0.7.tar.gz
  • Upload date:
  • Size: 22.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.7.tar.gz
Algorithm Hash digest
SHA256 8565bf8ac3b6d812b54dd22162e13912d0d49250c544c01c854e835b802ef34d
MD5 c7d59ecf83dad2f36f16a0a9497f9bc9
BLAKE2b-256 6b01796c3bb92f3d03a489e0d1ffeb144dac4605d725e62be1dcd212726a9df3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hf_hub_prompts-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 24.0 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f4d7dc9bf4e0d2540732966e6f48fcc09dee5f65e3ce55483dac4c0a4ccfb59e
MD5 d98c21ffed182170c2d0f74093766036
BLAKE2b-256 441b5d80e16c25d943a0a17a4da425f1952e1f9724325556b8fe729baa3666eb

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