Modular prompt engineering library for BERT, Mistral, LLaMA, and FLAN-T5 using YAML templates. Includes modes like ELI5, DevMode, Refine, Classification, and QA.
pip install PyYAML
For now, clone or copy this repo. PyPI packaging steps are included below.
from promptguru.engine import PromptEngine
engine = PromptEngine(model_type="mistral", mode="eli5")
prompt = engine.generate_prompt("What is quantum entanglement?")
print(prompt)
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_tagApache 2.0