cross-language prompt engineering framework
Project description
Promplate
</Promplate/> = /prompt/ + <template>
Promplate is a prompting framework focusing on developing experience. However, it can also be a super-convenient SDK for simple LLM calls. Promplate progressively enhance your prompting workflow. And it values flexibility as well as perfect conventions. Learn more
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) ] }}
- create documentation
- javascript implementation
- support chains and agents
- error handling
- template rich printing
- implement component syntax
{% Component * arg1 arg2 kwarg1=1 kwarg2=2 **kwargs %}
- allow more corner cases for the component syntax
-
{% Componnet arg=" * " %}
-
{% Componnet arg = " * " %}
-
{% Componnet arg = await f()
-
- if the outer context is a
defaultdict
, the context passing to component should be?- or maybe this should be determined by the component itself
- because a component could be a
Node
and aNode
can have preprocesses
- support while loop and isolated variable declaration
-
else
andelif
tag - directory based routing
- caching (and cache-controls maybe?)
- implement more loaders
- for now you can load template from local filesystem or web urls
- but component syntax only support variables from the context
- multi-file chat template
- using components
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.2.2.11.tar.gz
(8.4 kB
view details)
Built Distribution
File details
Details for the file promplate-0.2.2.11.tar.gz
.
File metadata
- Download URL: promplate-0.2.2.11.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.11 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15d9568f146b13dfe45901b2cdbc067b5aa4eeaf14fb81fd70216aa5beb651eb |
|
MD5 | fdb2064073d5c2ba65ff932393277304 |
|
BLAKE2b-256 | 20009166e7fc989b57ffa91ff848f599a6370de5a0f9aa7d2bee031fdb2bac4d |
File details
Details for the file promplate-0.2.2.11-py3-none-any.whl
.
File metadata
- Download URL: promplate-0.2.2.11-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.11 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d99fb358b24c04e09cb825a58d293a7d5fbbb150dd338f583fc00922e0fa757d |
|
MD5 | 95f76d3d3cf4aaf0bc0028d644fd78ea |
|
BLAKE2b-256 | c405313e88e66c1008644789a8e9e602af46f193b68ab454cbfaf32b10022913 |