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.0.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file promplate-0.1.0.tar.gz
.
File metadata
- Download URL: promplate-0.1.0.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 | 3c73c7067ddbcafb9e1999e8f2dbadb987e4f72093a68f10c58dea6c860eb31d |
|
MD5 | fa5f97c85e8311d32c3d22c41991b584 |
|
BLAKE2b-256 | ad136e943766412f57790d98e213bdade7a9c29ce66d8cc3049898023a28a2de |
File details
Details for the file promplate-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: promplate-0.1.0-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 | d7d546e9947295e4466d0fd56c7dfecf2c7b63a370b0607b0118e1751ab862d0 |
|
MD5 | e33978da4690bdbc39e37f0ab70ae9d4 |
|
BLAKE2b-256 | b36937507f8e03fc2eb6a9fcd74e66054907f5b461f54ddfe67a059fea58f505 |