PACman: Automatically convert prompts to Python functions
PACman: Automatically convert prompts to Python functions
I made a package to automatically convert prompts stored in a yaml file to pure python functions. A lot of prompt-heavy code is hard to grasp due to mixed use of large multi-line strings and orchestrating code. Some prompt libraries automate portions of these away, but we lose flexibility in prompting. By extrapolating the prompt config to a yaml file and generating pure Python functions from it, we can focus our business code on orchestrating the input/outputs of prompt functions. Another benefit of moving prompts to YAML files is that it's easy to move prompts between languages, and to track prompt changes via git.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
A lib to parse Python functions for ChatGPT and call them automatically
MakePip – Automatically Publish Python to PyPi
Py2pddl – Convert Python classes to PDDL files
Teyit – Automatically format your Python unittest assertions
We automatically fix your Python code for you
Modguard – Enforce modular Python automatically
CustomStringParser ( Python)
Lusernews is an implementation of lamernews in python
Do/While in Python
Gatos, conCATenative functions for python