Skip to main content

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.   Node is 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 between Nodes, you can specify a transformation function to reuse Nodes and connect any two Nodes.   Trellis verifies the data flowing between Nodes in a DAG to 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

trellis_dag-0.1.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trellis_dag-0.1.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file trellis_dag-0.1.0.tar.gz.

File metadata

  • Download URL: trellis_dag-0.1.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.4 Darwin/22.5.0

File hashes

Hashes for trellis_dag-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c20f3a77e458fdba3c1d7ed02b521b6116dd97a94fe9dcb24cc7054fe32bb98d
MD5 f81283515811d595cd9984dc359e9904
BLAKE2b-256 0c851a190359c53d65bd6ddd20fb0f1dc05f0341f6c9cbad2fa268496a97af4c

See more details on using hashes here.

File details

Details for the file trellis_dag-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: trellis_dag-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 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

Hashes for trellis_dag-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52160315d304fcc5a6a537f6ad0a188be1470490e8c32873dc742c1ee9e15e4d
MD5 a2bef732f273a03e1569bac8fcb09868
BLAKE2b-256 1c8693eac9c75502b608c20d67941ac2117553a476da08601e9c9c15a370bdfb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page