1 Repo
Transforms a Python function into a language model program using its docstring and return value to define system and user messages.
Distinct from Function Decorators: Distinct from Function Decorators: specifically decorates functions to define language model prompts, not general behavior extension.
Explore 1 awesome GitHub repository matching software engineering & architecture · Prompt. Refine with filters or upvote what's useful.
Ell is a Python library that treats prompts as callable functions, transforming a Python function into a language model program where the docstring defines the system message and the return value defines the user message. It provides a framework for writing language model programs that can accept and return images, audio, and text natively within message objects, and supports chaining multiple model calls into a single function for multi-step reasoning or test-time compute. The library decouples model selection from client instantiation through a registry that supports multiple provider backe
Transforms a Python function into a language model program using its docstring and return value to define system and user messages.