From ac131cc954dc2011a810f65e0b39218f3b07bd53 Mon Sep 17 00:00:00 2001 From: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com> Date: Mon, 12 Feb 2024 14:41:56 -0800 Subject: [PATCH] Add llmcompiler --- examples/llm-compiler/LLMCompiler.ipynb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/llm-compiler/LLMCompiler.ipynb b/examples/llm-compiler/LLMCompiler.ipynb index ba4fb12a2..2e72dc74a 100644 --- a/examples/llm-compiler/LLMCompiler.ipynb +++ b/examples/llm-compiler/LLMCompiler.ipynb @@ -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)" ] }, {