Metadata-Version: 2.1
Name: hf-hub-prompts
Version: 0.0.7
Summary: An experimental library for working with prompts on the Hugging Face Hub.
Home-page: https://github.com/MoritzLaurer/hf_hub_prompts
License: Appache-2.0
Author: MoritzLaurer
Author-email: moritz@huggingface.co
Requires-Python: >=3.10,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Provides-Extra: inference
Requires-Dist: accelerate (>=1.0.1,<2.0.0) ; extra == "inference"
Requires-Dist: anthropic (>=0.36.0,<0.37.0) ; extra == "inference"
Requires-Dist: boto3 (>=1.35.39,<2.0.0) ; extra == "inference"
Requires-Dist: datasets (>=2.21.0,<3.0.0)
Requires-Dist: huggingface-hub (>=0.25.2,<0.26.0)
Requires-Dist: langchain-anthropic (>=0.2.3,<0.3.0) ; extra == "inference"
Requires-Dist: langchain-core (>=0.3.12,<0.4.0) ; extra == "inference"
Requires-Dist: langchain-openai (>=0.2.2,<0.3.0) ; extra == "inference"
Requires-Dist: langchainhub (>=0.1.21,<0.2.0) ; extra == "inference"
Requires-Dist: langgraph (>=0.2.38,<0.3.0) ; extra == "inference"
Requires-Dist: numpy (>=1.26.0,<2.0.0)
Requires-Dist: openai (>=1.51.0,<2.0.0) ; extra == "inference"
Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
Requires-Dist: transformers (>=4.45.2,<5.0.0) ; extra == "inference"
Requires-Dist: yfinance (>=0.2.50,<0.3.0) ; extra == "inference"
Description-Content-Type: text/markdown

# 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](https://huggingface.co/HuggingFaceFW/fineweb-edu-classifier/blob/main/utils/prompt.txt),
in [HF datasets](https://huggingface.co/datasets/fka/awesome-chatgpt-prompts),
as strings in [model cards](https://huggingface.co/OpenGVLab/InternVL2-8B#grounding-benchmarks),
or on GitHub as [python strings](https://github.com/huggingface/cosmopedia/tree/main/prompts), 
in [JSON, YAML](https://github.com/hwchase17/langchain-hub/blob/master/prompts/README.md),
or in [Jinja2](https://github.com/argilla-io/distilabel/tree/main/src/distilabel/steps/tasks/templates). 



### 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](https://github.com/langchain-ai/langchain), 
[ell](https://docs.ell.so/reference/index.html), 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

```bash
pip install hf-hub-prompts
```

For examples of the core functionality, see the [docs](https://moritzlaurer.github.io/hf_hub_prompts/).


## Main use-case scenarios on the HF Hub
For use-case examples with all repository types on the Hugging Face Hub, see the [docs](https://moritzlaurer.github.io/hf_hub_prompts/).


## The standardized YAML or JSON prompt template format
For a discussion of the standardized YAML or JSON prompt template format, see the [docs](https://moritzlaurer.github.io/hf_hub_prompts/).


## TODO
- [ ] many things ...





