|
|
--- |
|
|
license: mit |
|
|
tags: |
|
|
- prompts |
|
|
- ai |
|
|
- prompt-management |
|
|
- promptlie |
|
|
--- |
|
|
|
|
|
 |
|
|
|
|
|
# ποΈ bhavnicksm's Prompts |
|
|
|
|
|
This private repository contains prompts managed by [**promptlie**](https://github.com/bhavnick/promptlie) - a free, open-source solution for prompt management using Hugging Face Hub. |
|
|
|
|
|
## π Repository Structure |
|
|
|
|
|
``` |
|
|
prompts/ |
|
|
βββ prompt-name-1.json |
|
|
βββ prompt-name-2.json |
|
|
βββ ... |
|
|
``` |
|
|
|
|
|
Each prompt is stored as a JSON file containing: |
|
|
- **content**: The actual prompt text |
|
|
- **metadata**: Author, version, performance metrics, etc. |
|
|
- **fields**: Template variables for dynamic prompts |
|
|
- **tags**: Organization and discovery |
|
|
- **version**: Prompt versioning for iteration |
|
|
|
|
|
## π Using These Prompts |
|
|
|
|
|
```python |
|
|
from promptlie import Promptlie |
|
|
|
|
|
# Connect to this repository |
|
|
store = Promptlie("bhavnicksm") |
|
|
|
|
|
# Load a prompt |
|
|
prompt = store.get("prompt-name") |
|
|
print(prompt.content) |
|
|
|
|
|
# Use with variables |
|
|
filled_prompt = prompt.content.format(**your_data) |
|
|
``` |
|
|
|
|
|
## π― Want Your Own Prompt Repository? |
|
|
|
|
|
Get started with **promptlie** in 2 minutes: |
|
|
|
|
|
```bash |
|
|
pip install promptlie |
|
|
``` |
|
|
|
|
|
```python |
|
|
from promptlie import Promptlie, Prompt |
|
|
|
|
|
# Create your store |
|
|
store = Promptlie("your-username", api_key="your-hf-token") |
|
|
store.init() # Creates your repository |
|
|
|
|
|
# Add prompts |
|
|
prompt = Prompt( |
|
|
name="my-prompt", |
|
|
content="Hello {name}, welcome to {app}!", |
|
|
fields=["name", "app"], |
|
|
tags=["greeting", "onboarding"] |
|
|
) |
|
|
|
|
|
store.publish("my-prompt", prompt) |
|
|
``` |
|
|
|
|
|
β¨ **Free forever** β’ π **Private & public repos** β’ π **Version control** |
|
|
|
|
|
--- |
|
|
|
|
|
*Powered by [promptlie](https://github.com/bhavnick/promptlie) & [Hugging Face Hub](https://huggingface.co/docs/hub)* |
|
|
|