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.1.3.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file promplate-0.1.1.3.tar.gz
.
File metadata
- Download URL: promplate-0.1.1.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b0cb27d5568014f746bf41543062f3d2581cb542460c807cf54fba92f2b92b3 |
|
MD5 | fe7f65c37716df1828f15c8b01b602fa |
|
BLAKE2b-256 | 756557bf61ae9f4b22603aa707eda2be559597afd50259c84ebbec503852782d |
File details
Details for the file promplate-0.1.1.3-py3-none-any.whl
.
File metadata
- Download URL: promplate-0.1.1.3-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32de9a0901e1a537e165c9baee0b37084d105bd7cebc94b38ba17594c8c4467a |
|
MD5 | 7304726ec5e00e8dd511f0187d8fe61a |
|
BLAKE2b-256 | 324205037707b581c74ea1664095b2984b0f8f036b55da6b4c8ef98eee9f226e |