MiniChain
A tiny library for coding with large language models
...Developers annotate ordinary functions to define model calls while keeping prompt templates separate from application logic. Multiple functions can be chained so the output of one model or tool becomes the input to another. The library records calls as a graph, making intermediate steps easier to inspect, debug, and retry. It includes model abstractions for language models as well as tools such as Python execution. A browser interface can display examples, subprompts, outputs, and queued runs for interactive demonstrations. ...