Skip to content

Releases: narenaryan/promptml

Fixed a dependency issue with LARK package

25 May 17:46
f107ee0
Compare
Choose a tag to compare

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

19 May 03:00
70dc24c
Compare
Choose a tag to compare

YAML & XML serialization support

  • Now serialize PromptML prompt to XML & YAML with methods like to_xml() and to_yaml() on prompt parser

Deprecated

  • serialize_* methods
  • deserialize_* 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

10 May 23:39
Compare
Choose a tag to compare

New `@var` annotation and support for defining variables

06 May 02:31
3cc8ba5
Compare
Choose a tag to compare

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

28 Apr 05:25
d53fc0f
Compare
Choose a tag to compare

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:

  1. context
  2. objective
  3. instructions
  4. examples
  5. constraints
  6. 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

Full Changelog: https://github.com/narenaryan/promptml/commits/v0.1.0