DAG-based LLM execution framework.
Project description
Trellis
Intro
Trellis is an open-source framework for programmatically orchestrating LLM workflows as Directed Acyclic Graphs (DAGs) in Python. We've intentionally designed it to give developers as much control as possible, and we've written documentation to make it incredibly easy to get started.
Structure
Trellis is composed of only three abstractions: Node, DAG, and LLM.
- Node: the atomic unit of Trellis. Nodes are chained together to form a DAG.
Nodeis an abstract class with only one method required to implement. - DAG: a directed acyclic graph of
Nodes. It is the primary abstraction for orchestrating LLM workflows. When you add edges betweenNodes, you can specify a transformation function to reuseNodes and connect any twoNodes. Trellis verifies the data flowing betweenNodesin aDAGto ensure the flow of data is validated. - LLM: a wrapper around a large language model with simple catches for common OpenAI errors. Currently, the only provider that Trellis supports is OpenAI.
Install
You can install Trellis with any of the following methods:
Pip
pip install trellis
Poetry
poetry add trellis
Conda
conda install trellis
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trellis_dag-0.1.1.tar.gz.
File metadata
- Download URL: trellis_dag-0.1.1.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Darwin/22.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
962d75bd8926f6369394d1b4d53396b1fac7feaf64801a48adb929c5a86f0cfc
|
|
| MD5 |
d86ce93556adf6321d18d04500a750eb
|
|
| BLAKE2b-256 |
5b45823ce67be200d511d6661d03bdcf157d472b539970b37a04f7b9f75e632c
|
File details
Details for the file trellis_dag-0.1.1-py3-none-any.whl.
File metadata
- Download URL: trellis_dag-0.1.1-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Darwin/22.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13bdd059a2c4e9a4a86921f258177c7fbd7172fbc6b14e67ccfd5e32c6a984d4
|
|
| MD5 |
61da003b05050da91c8ae0c437abee7a
|
|
| BLAKE2b-256 |
4ec9423e2d5dccf0c7c92f0d34f21567caa4007e767a8d35e317b83ef3d54fc3
|