promptyped
An embedded DSL in Haskell for writing typed LLM workflows. It structures 'LLM in a loop' tasks, such as forcing an LLM to keep making changes until unit tests pass, enforces custom validation with automatic task retries (validation can be an LLM check, a plain Haskell function, or running a compiler/unit tests), and provides structured context management: users specify which files are initially provided as context (optionally via LLM queries), the LLM gets tools to open files it deems relevant, is prompted to close the least important file when too many are open, and non-recently-modified source files are compressed when many are open. Currently heavily WIP with only a working Go compile/test backend.
What it addresses
Structuring LLM-in-a-loop workflows with reliable validation-retry logic and managing limited context (file selection, open/closing, compression) is manual and error-prone.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
promptyped
An embedded DSL in Haskell for writing typed LLM workflows. It structures 'LLM in a loop' tasks, such as forcing an LLM to keep making changes until unit tests pass, enforces custom validation with automatic task retries (validation can be an LLM check, a plain Haskell function, or running a compiler/unit tests), and provides structured context management: users specify which files are initially provided as context (optionally via LLM queries), the LLM gets tools to open files it deems relevant, is prompted to close the least important file when too many are open, and non-recently-modified source files are compressed when many are open. Currently heavily WIP with only a working Go compile/test backend.
Problem: Structuring LLM-in-a-loop workflows with reliable validation-retry logic and managing limited context (file selection, open/closing, compression) is manual and error-prone.
Posted by @logicchains · Original source ↗
Source text · @logicchains · · Source ↗
Working on an embedded DSL for writing typed LLM workflows in Haskell: https://github.com/outervation/promptyped . It handles the "LLM in a loop" structuring for e.g. forcing an LLM to keep making changes in a loop until unit tests pass