Skip to content

Commit 6464314

Browse files
committed
some colab links and typo fixes
1 parent 5f14e77 commit 6464314

File tree

3 files changed

+25
-17
lines changed

3 files changed

+25
-17
lines changed

recipes/use_cases/agents/langchain/langgraph-custom-agent.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"id": "1d42f85e-a931-4942-aa6e-b833291f102a",
66
"metadata": {},
77
"source": [
8-
"<a href=\"https://colab.research.google.com/github/meta-llama/llama-recipes/blob/main/recipes/use_cases/agents/langchain/langgraph-agent.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
8+
"<a href=\"https://colab.research.google.com/github/meta-llama/llama-recipes/blob/main/recipes/use_cases/agents/langchain/langgraph-custom-agent.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
99
]
1010
},
1111
{
@@ -42,7 +42,7 @@
4242
"\n",
4343
"We can still implement an agent in LangGraph.\n",
4444
"\n",
45-
"As we showed before, we'll give Llama 3 with various multi-model capabilities using an agent. \n",
45+
"As we showed before, we'll give Llama 3 with various multi-modal capabilities using an agent. \n",
4646
"\n",
4747
"![Screenshot 2024-05-14 at 3.28.29 PM.png](attachment:bfb9c05d-e857-423e-bacd-26e52fff67a9.png)"
4848
]
@@ -126,7 +126,7 @@
126126
"source": [
127127
"### 3. Text-2-Image\n",
128128
"\n",
129-
"We'll use Replicate, which [hosts an open DALL-E model](https://replicate.com/lucataco/open-dalle-v1.1/versions/1c7d4c8dec39c7306df7794b28419078cb9d18b9213ab1c21fdc46a1deca0144).\n",
129+
"We'll use [Replicate](https://replicate.com/), which offers free to try API key and hosts an [open DALL-E model](https://replicate.com/lucataco/open-dalle-v1.1/versions/1c7d4c8dec39c7306df7794b28419078cb9d18b9213ab1c21fdc46a1deca0144).\n",
130130
"\n",
131131
"Test the code before converting it to a tool (this may take 1-2 minutes to run):"
132132
]
@@ -213,7 +213,7 @@
213213
"source": [
214214
"### 4. Image-2-Text\n",
215215
"\n",
216-
"We'll use Replicate, which [hosts llava-13b](https://replicate.com/yorickvp/llava-13b).\n",
216+
"We'll use Replicate, which hosts [llava-13b](https://replicate.com/yorickvp/llava-13b).\n",
217217
"\n",
218218
"Test the code before converting it to a tool:"
219219
]
@@ -261,7 +261,7 @@
261261
"source": [
262262
"### 5. Text-2-Speech\n",
263263
"\n",
264-
"We'll use Replicate, which [hosts text-2-speech](https://replicate.com/cjwbw/seamless_communication)."
264+
"We'll use Replicate, which hosts [text-2-speech](https://replicate.com/cjwbw/seamless_communication)."
265265
]
266266
},
267267
{
@@ -923,7 +923,7 @@
923923
"name": "python",
924924
"nbconvert_exporter": "python",
925925
"pygments_lexer": "ipython3",
926-
"version": "3.11.9"
926+
"version": "3.10.14"
927927
}
928928
},
929929
"nbformat": 4,

recipes/use_cases/agents/langchain/langgraph-tool-calling-agent.ipynb

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "8ac4ba3b-c438-4f2e-8f52-39846beb5642",
6+
"metadata": {},
7+
"source": [
8+
"<a href=\"https://colab.research.google.com/github/meta-llama/llama-recipes/blob/main/recipes/use_cases/agents/langchain/langgraph-tool-calling-agent.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
9+
]
10+
},
311
{
412
"cell_type": "code",
513
"execution_count": null,
@@ -30,8 +38,8 @@
3038
"\n",
3139
"It allows for more customization than agent executor:\n",
3240
"\n",
33-
"1) It allows us to define `nodes` for our assistant (which decides whether to call a tool) and our actions (tool calls)\n",
34-
"2) It allows us to define specific `edges` that connect these nodes (e.g., based upon whether a tool call is decided)\n",
41+
"1) It allows us to define `nodes` for our assistant (which decides whether to call a tool) and our actions (tool calls).\n",
42+
"2) It allows us to define specific `edges` that connect these nodes (e.g., based upon whether a tool call is decided).\n",
3543
"3) It enables `cycles`, where we can call our assistant in a loop until a stopping condition.\n",
3644
"\n",
3745
"![Screenshot 2024-05-14 at 2.17.55 PM.png](attachment:76e788ea-72ee-4a39-9f6c-6911d2937b84.png)\n",
@@ -42,7 +50,7 @@
4250
"\n",
4351
"As before, we'll use [Tavily](https://tavily.com/#api) for web search.\n",
4452
"\n",
45-
"We'll use Replicate for various multi-modal capabilities.\n",
53+
"We'll use [Replicate](https://replicate.com/), which offers free to try API key and for various multi-modal capabilities.\n",
4654
"\n",
4755
"We can review LangChain LLM integrations that support tool calling [here](https://python.langchain.com/docs/integrations/chat/).\n",
4856
"\n",
@@ -250,9 +258,9 @@
250258
"source": [
251259
"### Assistant \n",
252260
"\n",
253-
"This is llama3, with tool-calling, using [Groq](https://python.langchain.com/v0.1/docs/integrations/chat/groq/).\n",
261+
"This is Llama 3, with tool-calling, using [Groq](https://python.langchain.com/v0.1/docs/integrations/chat/groq/).\n",
254262
"\n",
255-
"We bind the available tools to the llm. \n",
263+
"We bind the available tools to Llama 3. \n",
256264
"\n",
257265
"And we further specify the available tools in our assistant prompt."
258266
]
@@ -815,7 +823,7 @@
815823
"name": "python",
816824
"nbconvert_exporter": "python",
817825
"pygments_lexer": "ipython3",
818-
"version": "3.11.9"
826+
"version": "3.10.14"
819827
}
820828
},
821829
"nbformat": 4,

recipes/use_cases/agents/langchain/tool-calling-agent.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"\n",
3535
"LangChain's [agent executor](https://python.langchain.com/docs/modules/agents/agent_types/tool_calling/) offers a simple way to quickly get started with agents.\n",
3636
"\n",
37-
"Here, we will show how to augment a tool-calling version of Llama 3 with various multi-model capabilities using an agent. \n",
37+
"Here, we will show how to augment a tool-calling version of Llama 3 with various multi-modal capabilities using an agent. \n",
3838
"\n",
3939
"![image.png](attachment:6af2e76d-6f3d-44c9-a128-c19e70a400e9.png)"
4040
]
@@ -133,7 +133,7 @@
133133
"source": [
134134
"### 3. Text-2-Image\n",
135135
"\n",
136-
"We'll use Replicate, which [hosts an open DALL-E model](https://replicate.com/lucataco/open-dalle-v1.1/versions/1c7d4c8dec39c7306df7794b28419078cb9d18b9213ab1c21fdc46a1deca0144).\n",
136+
"We'll use [Replicate](https://replicate.com/), which offers free to try API key and hosts an [open DALL-E model](https://replicate.com/lucataco/open-dalle-v1.1/versions/1c7d4c8dec39c7306df7794b28419078cb9d18b9213ab1c21fdc46a1deca0144).\n",
137137
"\n",
138138
"Test the code (this may take 1-2 minutes to run):"
139139
]
@@ -259,7 +259,7 @@
259259
"source": [
260260
"### 4. Image-2-Text\n",
261261
"\n",
262-
"We'll use Replicate, which [hosts llava-13b](https://replicate.com/yorickvp/llava-13b).\n",
262+
"We'll use Replicate, which hosts [llava-13b](https://replicate.com/yorickvp/llava-13b).\n",
263263
"\n",
264264
"Test the code before converting it to a tool:"
265265
]
@@ -340,7 +340,7 @@
340340
"source": [
341341
"### 5. Text-2-Speech\n",
342342
"\n",
343-
"We'll use Replicate, which [hosts text-2-speech](https://replicate.com/cjwbw/seamless_communication).\n",
343+
"We'll use Replicate, which hosts [text-2-speech](https://replicate.com/cjwbw/seamless_communication).\n",
344344
"\n",
345345
"Test the code before creating yet another custom tool (this may take a couple of minutes to run):"
346346
]
@@ -833,7 +833,7 @@
833833
"name": "python",
834834
"nbconvert_exporter": "python",
835835
"pygments_lexer": "ipython3",
836-
"version": "3.11.9"
836+
"version": "3.10.14"
837837
}
838838
},
839839
"nbformat": 4,

0 commit comments

Comments
 (0)