Initialize promptlie repository
Browse files
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- prompts
|
| 5 |
+
- ai
|
| 6 |
+
- prompt-management
|
| 7 |
+
- promptlie
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+

|
| 11 |
+
|
| 12 |
+
# ποΈ bhavnicksm's Prompts
|
| 13 |
+
|
| 14 |
+
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.
|
| 15 |
+
|
| 16 |
+
## π Repository Structure
|
| 17 |
+
|
| 18 |
+
```
|
| 19 |
+
prompts/
|
| 20 |
+
βββ prompt-name-1.json
|
| 21 |
+
βββ prompt-name-2.json
|
| 22 |
+
βββ ...
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
Each prompt is stored as a JSON file containing:
|
| 26 |
+
- **content**: The actual prompt text
|
| 27 |
+
- **metadata**: Author, version, performance metrics, etc.
|
| 28 |
+
- **fields**: Template variables for dynamic prompts
|
| 29 |
+
- **tags**: Organization and discovery
|
| 30 |
+
- **version**: Prompt versioning for iteration
|
| 31 |
+
|
| 32 |
+
## π Using These Prompts
|
| 33 |
+
|
| 34 |
+
```python
|
| 35 |
+
from promptlie import Promptlie
|
| 36 |
+
|
| 37 |
+
# Connect to this repository
|
| 38 |
+
store = Promptlie("bhavnicksm")
|
| 39 |
+
|
| 40 |
+
# Load a prompt
|
| 41 |
+
prompt = store.get("prompt-name")
|
| 42 |
+
print(prompt.content)
|
| 43 |
+
|
| 44 |
+
# Use with variables
|
| 45 |
+
filled_prompt = prompt.content.format(**your_data)
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## π― Want Your Own Prompt Repository?
|
| 49 |
+
|
| 50 |
+
Get started with **promptlie** in 2 minutes:
|
| 51 |
+
|
| 52 |
+
```bash
|
| 53 |
+
pip install promptlie
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
```python
|
| 57 |
+
from promptlie import Promptlie, Prompt
|
| 58 |
+
|
| 59 |
+
# Create your store
|
| 60 |
+
store = Promptlie("your-username", api_key="your-hf-token")
|
| 61 |
+
store.init() # Creates your repository
|
| 62 |
+
|
| 63 |
+
# Add prompts
|
| 64 |
+
prompt = Prompt(
|
| 65 |
+
name="my-prompt",
|
| 66 |
+
content="Hello {name}, welcome to {app}!",
|
| 67 |
+
fields=["name", "app"],
|
| 68 |
+
tags=["greeting", "onboarding"]
|
| 69 |
+
)
|
| 70 |
+
|
| 71 |
+
store.publish("my-prompt", prompt)
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
β¨ **Free forever** β’ π **Private & public repos** β’ π **Version control**
|
| 75 |
+
|
| 76 |
+
---
|
| 77 |
+
|
| 78 |
+
*Powered by [promptlie](https://github.com/bhavnick/promptlie) & [Hugging Face Hub](https://huggingface.co/docs/hub)*
|