Build powerful AI chains with intuitive composition patterns.
The UEL (Upsonic Expression Language) provides a declarative way to compose AI components into sophisticated chains. Without UEL, building complex AI workflows requires verbose code with manual data passing and error handling. With UEL, you can:
Overview
UEL can be used with minimal configuration or with extensive customization to suit your specific needs. The system provides a robust foundation for AI-powered applications with built-in support for various advanced features.
Key Features
- Chain Components Elegantly - Use the pipe operator (
|) for readable, maintainable code
- Execute Operations in Parallel - Maximize performance and reduce latency
- Build Dynamic Chains - Adapt based on input conditions
- Manage Conversation History - Seamlessly handle context across interactions
- Integrate Tools and Structured Outputs - Minimal boilerplate required
- Visualize Your Chains - Understand complex workflows at a glance
- Async Support - Full async/await support for all operations
Example
Basic Example
When using infer_model() without specifying a model, it defaults to "openai/gpt-4o". Make sure you have the appropriate API key set in your environment.
Advanced Example with Memory
Navigation