Skip to main content

cross-language prompt engineering framework

Project description

Promplate

Promplate is for prompt + template

I want to build a cross-language prompt engineering framework.

IDE Support 🌹

I try to make the syntax compatible with Jinja2.

Future Features (or TODOs?)

  • (lazy) template compiling
  • support any evaluatable expression inside template like {{ [ i for i in range(n) ] }}
  • support chains and agents
  • error handling
  • template rich printing
  • implement component syntax
    • maybe like {% Component arg1 arg2 kwarg1=1 kwarg2=2 %}
  • support something like named slot syntax
    • or maybe not named slot, it can be a special nullable parameter
    • a slot may be like {% slot ~ Name %} and it will generate name = context.get("name")
    • the used component only renders once, after the end tag (a buffer seems to be unavoidable)
    • an elevation of slot statements may be the necessary and sufficient condition
  • support while loop and isolated variable declaration
  • else and elif tag
  • directory based routing
  • caching (and cache-controls maybe?)
  • implement more loaders
  • multi-file chat template

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

promplate-0.1.1.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

promplate-0.1.1.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file promplate-0.1.1.1.tar.gz.

File metadata

  • Download URL: promplate-0.1.1.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Windows/10

File hashes

Hashes for promplate-0.1.1.1.tar.gz
Algorithm Hash digest
SHA256 d6219cb1ea14a3b9e60afb3625bfc3b594a47cd41ba24e8dbcd4791d31bec59c
MD5 649baba44508402d8dd03a13d0e74915
BLAKE2b-256 20c376565c19e612487f286c2e2bb85efa4e1ff45897f85633c33a7acc12cbaa

See more details on using hashes here.

File details

Details for the file promplate-0.1.1.1-py3-none-any.whl.

File metadata

  • Download URL: promplate-0.1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Windows/10

File hashes

Hashes for promplate-0.1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 92f60ea9d19dc4410a9803d7a15cc2de68f6384ca609b30f9a1deb77d39ff9e9
MD5 f9a222b2d483b33767c8aadb7495dbab
BLAKE2b-256 b4fa61b7da1dc28a094ac73f5d5203a51380197b8cae9af39937da7368247d62

See more details on using hashes here.

Supported by

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