Spaces:
Running
Running
Delete promptguru.egg-info/PKG-INFO
Browse files- promptguru.egg-info/PKG-INFO +0 -50
promptguru.egg-info/PKG-INFO
DELETED
|
@@ -1,50 +0,0 @@
|
|
| 1 |
-
Metadata-Version: 2.4
|
| 2 |
-
Name: promptguru
|
| 3 |
-
Version: 0.1.0
|
| 4 |
-
Summary: Modular prompt engineering library
|
| 5 |
-
Author-email: Naga Adithya Kaushik <[email protected]>
|
| 6 |
-
License: Apache-2.0
|
| 7 |
-
Project-URL: Homepage, https://huggingface.co/spaces/GenAIDevTOProd/PromptGuru
|
| 8 |
-
Keywords: prompts,nlp,llm,huggingface,templates
|
| 9 |
-
Requires-Python: >=3.8
|
| 10 |
-
Description-Content-Type: text/markdown
|
| 11 |
-
Requires-Dist: PyYAML>=6.0
|
| 12 |
-
|
| 13 |
-
# PromptGuru
|
| 14 |
-
|
| 15 |
-
**Modular prompt engineering library** for BERT, Mistral, LLaMA, and FLAN-T5 using YAML templates.
|
| 16 |
-
Includes modes like **ELI5**, **DevMode**, **Refine**, **Classification**, and **QA**.
|
| 17 |
-
|
| 18 |
-
## Why
|
| 19 |
-
- Lightweight and framework-agnostic
|
| 20 |
-
- YAML-first: edit prompts without changing code
|
| 21 |
-
- Consistent modes across multiple model families
|
| 22 |
-
|
| 23 |
-
## Install (Local Dev)
|
| 24 |
-
```bash
|
| 25 |
-
pip install PyYAML
|
| 26 |
-
```
|
| 27 |
-
> For now, clone or copy this repo. PyPI packaging steps are included below.
|
| 28 |
-
|
| 29 |
-
## Usage
|
| 30 |
-
```python
|
| 31 |
-
from promptguru.engine import PromptEngine
|
| 32 |
-
|
| 33 |
-
engine = PromptEngine(model_type="mistral", mode="eli5")
|
| 34 |
-
prompt = engine.generate_prompt("What is quantum entanglement?")
|
| 35 |
-
print(prompt)
|
| 36 |
-
```
|
| 37 |
-
|
| 38 |
-
## Templates
|
| 39 |
-
Templates live in `promptguru/templates/`:
|
| 40 |
-
- `bert.yaml` → `classification`, `fill_mask`, `qa`
|
| 41 |
-
- `mistral.yaml` → `eli5`, `devmode`, `refine`
|
| 42 |
-
- `llama.yaml` → `eli5`, `devmode`, `refine`
|
| 43 |
-
- `flan_t5.yaml` → `eli5`, `devmode`, `explain_and_tag`
|
| 44 |
-
|
| 45 |
-
## Roadmap
|
| 46 |
-
- Add inference adapters (HF Inference API, OpenRouter) behind a common interface
|
| 47 |
-
- Add more modes (contrastive QA, chain-of-thought, safety/risk tags)
|
| 48 |
-
|
| 49 |
-
## License
|
| 50 |
-
Apache 2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|