Skip to main content

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.yamlclassification, fill_mask, qa
  • mistral.yamleli5, devmode, refine
  • llama.yamleli5, devmode, refine
  • flan_t5.yamleli5, 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

promptguru-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

promptguru-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for promptguru-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bfc384c86f75599ca6f98b97a2c680621eae15f30bf7f07d38eeab049aa20c55
MD5 02d6bf24333d1f4a517093e118c4a54d
BLAKE2b-256 28673f1b9928336a802ed14085d6b8508bad687b983f0192a34a86fe6a950674

See more details on using hashes here.

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

Hashes for promptguru-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78a3497873143f1e00309033bf58e8514b1900f90a4a17c95480979c7b6e644e
MD5 5404933b1544bedd20c95947b34fff69
BLAKE2b-256 5e1df2513e0a6f18bba91526eb031804cf515a431d0e2f31ca67758fdb5089a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page