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: Create AI Videos Easily https://ift.tt/R2NTISzShow HN: Create AI Videos Easily A few months ago I started using AI t… Read More
Show HN: A Girl Next Door Does Not Exist (NSFW) https://ift.tt/ELgvmCaShow HN: A Girl Next Door Does Not Exist (NSFW) Warning: NSFW. I'm pos… Read More
Show HN: Turing RK1 – 32GB RAM and AI Accelerator https://ift.tt/McI1YLyShow HN: Turing RK1 – 32GB RAM and AI Accelerator A year ago, we launc… Read More
Show HN: Socket web extension – free NPM supply chain protection https://ift.tt/fxHpKDUShow HN: Socket web extension – free NPM supply chain protection Hey H… Read More
Show HN: A simple wireless power demonstration circuit https://ift.tt/LznTdBKShow HN: A simple wireless power demonstration circuit https://ift.tt/… Read More
Show HN: Pyflo – a free, interactive guide to learning Python https://ift.tt/dZX6MASShow HN: Pyflo – a free, interactive guide to learning Python TL;DR: h… Read More
Show HN: Release Train – Continuous Releases Made Easy https://ift.tt/y5pjPIlShow HN: Release Train – Continuous Releases Made Easy https://ift.tt/… Read More
Show HN: Openexus – Building blocks for the internet https://ift.tt/RiPTrKxShow HN: Openexus – Building blocks for the internet Hi HN! We ar… Read More
0 Comments: