Show HN: Trellis – open-source Python framework to build DAG-based LLM workflows Hey HN! Trellis is an open-source framework for programmatically orchestrating LLM workflows as Directed Acyclic Graphs (DAGs) in Python. My friend and I started working on this a few weeks ago after we tried building applications using mainstream LLM frameworks, and faced all the common complaints (too abstracted, hard to customize, bad docs/support). After talking to a few other people building with LLMs, we also noticed that these frameworks were not inherently built to support DAG-based LLM workflows. We designed Trellis to be as minimal and flat as possible, so developers can have lower level control over their DAGs. 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. Check out our docs if this sounds interesting: https://ift.tt/T8JvxUa... We'd love it if you tried hacking with it and give us any feedback you have! :) https://ift.tt/vwjscqx September 6, 2023 at 07:34AM
Show HN: Trellis – open-source Python framework to build DAG-based LLM workflows https://ift.tt/R7kcNnZ
Related Articles
Show HN: Radar Chat – Leave Digital Messages in the Physical World https://ift.tt/3FVKq0AShow HN: Radar Chat – Leave Digital Messages in the Physical World htt… Read More
Show HN: A Docker/OCI IPFS based distributed registry https://ift.tt/3cSRgaXShow HN: A Docker/OCI IPFS based distributed registry https://ift.tt/3… Read More
Show HN: K8s Cross-Cluster Application Migration in 1 Minute or Less https://ift.tt/3d5qCM6Show HN: K8s Cross-Cluster Application Migration in 1 Minute or Less h… Read More
Show HN: My first article: SSO using Flask and selenium https://ift.tt/3xx1PK3Show HN: My first article: SSO using Flask and selenium https://papyru… Read More
Show HN: Data algebra, going back to Codd's relational operators https://ift.tt/3G5RJmEShow HN: Data algebra, going back to Codd's relational operators https… Read More
Show HN: Anyone should be able to find community, so I made a site to help https://ift.tt/3FSx05BShow HN: Anyone should be able to find community, so I made a site to … Read More
Show HN: Box – Data Transformation Pipelines in Rust DataFusion https://ift.tt/3rpKFNsShow HN: Box – Data Transformation Pipelines in Rust DataFusion https:… Read More
Show HN: UI Foundations, explaining UI design in an interactive platform https://ift.tt/3HWwmpFShow HN: UI Foundations, explaining UI design in an interactive platfo… Read More
0 Comments: