by bconnorwhite on 9/28/23, 8:37 PM with 0 comments
After writing a few too many prompts with nested ternaries in string templates I tried writing prompts in JSX instead, and discovered the DX was far better.
Prxmpt is sort of like "TailwindCSS for Prompt Engineering" - it comes with a bunch of utility elements that remove the headache of composing complex prompts.
Prxmpt also includes a few more advanced elements such as <priority>, which is sort of like a CSS media query for text. It allows you to easily set policies for which content is dropped once you hit your token limit.
Prxmpt is still v0.1, but I've put included several examples in the repo. If you use TS/JS and work with LLMs I'd appreciate any ideas or feedback - I'm sure there are a bunch of useful features that I haven't thought of yet.