Modular prompt engineering library
Project description
PromptGuru
Modular prompt engineering library for BERT, Mistral, LLaMA, and FLAN-T5 using YAML templates. Includes modes like ELI5, DevMode, Refine, Classification, and QA.
Why
- Lightweight and framework-agnostic
- YAML-first: edit prompts without changing code
- Consistent modes across multiple model families
Install (Local Dev)
pip install PyYAML
For now, clone or copy this repo. PyPI packaging steps are included below.
Usage
from promptguru.engine import PromptEngine
engine = PromptEngine(model_type="mistral", mode="eli5")
prompt = engine.generate_prompt("What is quantum entanglement?")
print(prompt)
Templates
Templates live in promptguru/templates/:
bert.yaml→classification,fill_mask,qamistral.yaml→eli5,devmode,refinellama.yaml→eli5,devmode,refineflan_t5.yaml→eli5,devmode,explain_and_tag
Roadmap
- Add inference adapters (HF Inference API, OpenRouter) behind a common interface
- Add more modes (contrastive QA, chain-of-thought, safety/risk tags)
License
Apache 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file promptguru-0.1.0.tar.gz.
File metadata
- Download URL: promptguru-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfc384c86f75599ca6f98b97a2c680621eae15f30bf7f07d38eeab049aa20c55
|
|
| MD5 |
02d6bf24333d1f4a517093e118c4a54d
|
|
| BLAKE2b-256 |
28673f1b9928336a802ed14085d6b8508bad687b983f0192a34a86fe6a950674
|
File details
Details for the file promptguru-0.1.0-py3-none-any.whl.
File metadata
- Download URL: promptguru-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78a3497873143f1e00309033bf58e8514b1900f90a4a17c95480979c7b6e644e
|
|
| MD5 |
5404933b1544bedd20c95947b34fff69
|
|
| BLAKE2b-256 |
5e1df2513e0a6f18bba91526eb031804cf515a431d0e2f31ca67758fdb5089a1
|