Version 0.8.0 #1154
mandel
announced in
Announcements
Version 0.8.0
#1154
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
New Features
The main changes in this release are:
AutoPDL: automatic optimization of PDL programs
Given a PDL program with some free variables, a search space for these free variable, a loss function, and a training set, you can optimize the PDL program using the
pdl-optimize
command. This allows to optimize any part of a PDL program such as the textual prompts, the few-shots examples, or the prompting patterns. This work is based on the paper AutoPDL: Automatic Prompt Optimization for LLM Agents. A new section of the manual is describing how to use the optimizer.Calling PDL functions from Jinja and Python
It is now possible to call a function defined in PDL inside a Jinja expression or a Python code block. Here is an example where the function
translate
is called in the Jinja expression${ translate("Hello", language="French") }
:Map/reduce block
Similar to the
repeat
loops, PDL now offers amap
block. The difference with therepeat
block is that the context is not accumulated between iterations, each iteration is executed with the same context. Here is an example ofmap
block:What's Changed
.signature
by @mandel in tests: update calc example to use.signature
Β #1067PazyApply.result
returns a non-lazy value by @mandel in fix: ensure thatPazyApply.result
returns a non-lazy valueΒ #1101Full Changelog: v0.7.1...v0.8.0
This discussion was created from the release Version 0.8.0.
Beta Was this translation helpful? Give feedback.
All reactions