News for hackers. Stuff that matters.
Re:Prompts Are Programs – Sigplan Blog by netcan on Saturday November 02, 2024 @04:36AM (#42024940)
Any interesting examples of methods to make LLMs more "programmable?"
Re:Prompts Are Programs – Sigplan Blog by tilt_error on Saturday November 02, 2024 @05:21AM (#42025113)
DSPy?
Re:Prompts Are Programs – Sigplan Blog by cpfiffer on Sunday November 03, 2024 @01:44PM (#42035129)
I work at .txt, where we work on exactly this. We use structured generation to make programmable language model systems. Here's two examples I worte + love.

One makes a (sort of) internally consistent infinite world generator with RAG + Outlines:

https://github.com/dottxt-ai/demos/tree/main/lore-generator

This one makes two characters up and then builds a simple combat loop where they fight each other:

https://github.com/dottxt-ai/demos/tree/main/nouscon-24

Both are simple examples of basic programming with language model outputs.