Growing India News, world news, nation news, our news, people's news, grow news, entertainment, fashion, movies, tech, automobile and many more..
Wednesday, September 6, 2023
Show HN: Trellis – open-source Python framework to build DAG-based LLM workflows https://ift.tt/7YNz0Tx
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/ojshWPK... We'd love it if you tried hacking with it and give us any feedback you have! :) https://ift.tt/fdkh47a September 6, 2023 at 07:34AM
Subscribe to:
Post Comments (Atom)
Show HN: Pocket2Linkding – Migrate from Mozilla Pocket to Linkding https://ift.tt/IwYJfju
Show HN: Pocket2Linkding – Migrate from Mozilla Pocket to Linkding With the Mozilla Pocket shutdown coming up in about two weeks, I thought ...
-
Show HN: An AI logo generator that can also generate SVG logos Hey everyone, I've spent the past 2 weeks building an AI logo generator, ...
-
Show HN: Snap Scope – Visualize Lens Focal Length Distribution from EXIF Data https://ift.tt/yrqHZtDShow HN: Snap Scope – Visualize Lens Focal Length Distribution from EXIF Data Hey HN, I built this tool because I wanted to understand which...
-
Show HN: Federated IndieAuth Server implemented as a notebook https://ift.tt/32IC633 April 27, 2021 at 04:37PM
No comments:
Post a Comment