MiniChain: より小さな LangChain
A tiny library for coding with large language models. Check out the MiniChain Zoo to get a sense of how it works. Coding Code (math_demo.py): Annotate Python functions that call language models. @prompt(OpenAI(), template_file=”math.pmpt.tpl”) def math_prompt(model, question): “Prompt to call GPT with a Jinja template” return model(dict(question=question)) @prompt(Python()) def python(model, code): “Prompt to call Python…