Releases: narenaryan/promptml
Releases · narenaryan/promptml
Fixed a dependency issue with LARK package
Hi, In this release, we have fixed a bug related to package dependencies.
Before:
You have to install LARK package manually
After:
pip install promptml
will now automatically installs dependencies
v0.6.0: Merge pull request #10 from narenaryan/feat/xml-serialize
YAML & XML serialization support
- Now serialize PromptML prompt to XML & YAML with methods like to_xml() and to_yaml() on prompt parser
Deprecated
serialize_*
methodsdeserialize_*
methods
Example usage:
from promptml.parser import PromptParserFromFile
p1 = PromptParserFromFile('prompt.pml')
# parse the prompt
p1.parse()
# serialize prompt to XML
print(p1.to_xml())
# serialize prompt to YAML
print(p1.to_yaml())
# serialize prompt to JSON
print(p1.to_json(indent=4))
Bumping version to v0.5.0 to continue promptml PyPi transfer
update version of package
New `@var` annotation and support for defining variables
Major Changes
- New
@var @end
annotation - Support custom properties in
@metadata
annotation @domain
is now renamed to@category
@difficulty
annotation is moved into@constraints
Inception of PromptML library v0.1.0
We are excited to announce our first minor version of promptml
library. This release has changes like:
Features
First version of PromptML grammar with support for annotations:
- context
- objective
- instructions
- examples
- constraints
- metadata
What's Changed
- feat: Replace regex parser with LARK parser for PromptML by @narenaryan in #1
- ci: add build system for packages by @narenaryan in #2
- feat: add sample calculator app that uses prompt parser by @narenaryan in #3
- feat: add working example for poem writing by @narenaryan in #4
- feat: add missing requirements.tx file by @narenaryan in #5
New Contributors
- @narenaryan made their first contribution in #1
Full Changelog: https://github.com/narenaryan/promptml/commits/v0.1.0