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.4.tar.gz
(6.1 kB
view details)
Built Distribution
File details
Details for the file promplate-0.1.6.4.tar.gz
.
File metadata
- Download URL: promplate-0.1.6.4.tar.gz
- Upload date:
- Size: 6.1 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 | b73a05dc18ddaf1211feafe127c86682093f4cf64509ebcfe53f5fcb9eb0dd32 |
|
MD5 | f41cdac11698df47114ca2276dff356f |
|
BLAKE2b-256 | c177a396d68b5941da9696021142ea6dab121e2ee0c45d7b2f5f427ca5049fe0 |
File details
Details for the file promplate-0.1.6.4-py3-none-any.whl
.
File metadata
- Download URL: promplate-0.1.6.4-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 | 6a28b4ee84e0392f8d1c4084a4851444d7dfe5d935ca98e84934fc6841f644b6 |
|
MD5 | ad06d7dd468d520a509b5f376ac216ee |
|
BLAKE2b-256 | 5c8ba7d7695bd8fe0c077eaa88758b30f611cd7b20e1eeeef4c068daeecd1377 |