Show HN: Build AI DAGs with Memory; Run and Validate LLM Tools in Containers
48 points| vasinov | 2 years ago |github.com
Griptape can be thought of as "Airflow for LLMs," providing an alternative to the agent-based LangChain approach.
Developers can also build reusable LLM tools with explicit JSON schemas that can be executed in any environment (local, containerized, cloud, etc.) and integrated into Griptape workflows. They can also be easily converted into ChatGPT Plugin APIs and LangChain tools via adapters.
Tools can be thought of as any executable code that allows LLMs to interact with the outside world (via ReAct and Toolformer techniques): email, docs, spreadsheets, Jira tickets, web pages/search, etc.
The best part about tools is that they can be executed in isolated environments, significantly reducing potential security risks associated with running LLM-generated code and API calls.
What do you think? What are some of the use cases that you have in mind for reusable tools?
cto_official|2 years ago
tartakovsky|2 years ago
vasinov|2 years ago
In short, Griptape is different from LangChain in the following ways:
- Instead of chained agents, it uses more general-purpose DAGs and pipelines. Think of it as Airflow for LLMs. It still implements chain of thought logic for prompt workflow steps that use tools but it also supports any kind of input and output (think images, audio, etc.). - Griptape tools are designed to be decoupled from the caller logic and execution environments. For example, tools can be easily run in a Docker container or a Lambda function (as opposed to just YOLOing LLM-generated Python code on the local box). - Tools can be plugged into other LLM frameworks through adapters. For example, you can convert any Griptape tool into a LangChain tool or generate a ChatGPT Plugin API with a single line of code. This is the only place Griptape actually references LangChain in code, afaik :)
Issues do need to be moved from a private Trello into GitHub (still early days...)—I can ping when that's done—are you on Griptape Discord?
d4rkp4ttern|2 years ago
james-revisoai|2 years ago
Would be a nice use-case to plop a website into a chatbot easily, for example.
vasinov|2 years ago
I run a local chat app built with Griptape and I use it to give me summaries of web pages or answer specific questions all the time :)
1. https://github.com/adbar/trafilatura/
2. https://www.adept.ai/blog/act-1
Anil1331|2 years ago