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-optimizecommand. 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
translateis called in the Jinja expression${ translate("Hello", language="French") }:Map/reduce block
Similar to the
repeatloops, PDL now offers amapblock. The difference with therepeatblock is that the context is not accumulated between iterations, each iteration is executed with the same context. Here is an example ofmapblock:What's Changed
.signatureby @mandel in tests: update calc example to use.signature#1067PazyApply.resultreturns a non-lazy value by @mandel in fix: ensure thatPazyApply.resultreturns 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