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 %}
- maybe like
- 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 generatename = 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
andelif
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.6.tar.gz
(6.0 kB
view details)
Built Distribution
File details
Details for the file promplate-0.1.6.tar.gz
.
File metadata
- Download URL: promplate-0.1.6.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf64e00c981ec4637401e808f13863b35b70b06da706ca7e6e3a816f562c67e3 |
|
MD5 | a9d57526fbea9f649cc104017ec2fa0c |
|
BLAKE2b-256 | e242ea3fe34a6f5413e96c4359d03459ccf9fc7c5de850da853e605ff332bdd4 |
File details
Details for the file promplate-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: promplate-0.1.6-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d7502df0907314b00d7986cdee9450bf70727f60945a1158ff451e016c72cf8 |
|
MD5 | 8189ae2d6f9d4ce1aa5eb70e0754be40 |
|
BLAKE2b-256 | 261b25549d740567ce6dc6fe8a359d70537c753710d32fa7b17abc3ce1f59af5 |