Add llmcompiler

This commit is contained in:
William Fu-Hinthorn
2024-02-12 14:41:56 -08:00
parent b208ccded0
commit ac131cc954
+6 -2
View File
@@ -9,13 +9,14 @@
"\n",
"This notebook shows how to implement [LLMCompiler, by Kim, et. al](https://arxiv.org/abs/2312.04511) in LangGraph.\n",
"\n",
"![LLMCompiler Graph](./img/llm-compiler.png)\n",
"\n",
"LLMCompiler is an agent architecture intented on speeding up the latency of agentic tasks via fast, parallel tool execution. It has 3 main components:\n",
"\n",
"1. Planner: generate a DAG of tasks.\n",
"2. Task Fetching Unit: schedules and executes the tasks\n",
"3. Joiner: Responds to the user or triggers a second plan\n",
"\n",
"![diagram](./img/diagram.png)\n",
"\n",
"This notebook walks through each component and shows how to wire them together using LangGraph. \n",
"\n",
@@ -299,7 +300,10 @@
"}\n",
"```\n",
"\n",
"The basic idea is to begin executing tools as soon as their dependencies are met. This is done through multi-threading."
"\n",
"The basic idea is to begin executing tools as soon as their dependencies are met. This is done through multi-threading. We will combine the task fetching unit and exector below:\n",
"\n",
"![diagram](./img/diagram.png)"
]
},
{