From 66b728e83a0661d1ca8f47fad97ef53d3a5f717d Mon Sep 17 00:00:00 2001 From: William FH <13333726+hinthornw@users.noreply.github.com> Date: Wed, 26 Jun 2024 00:20:20 -0700 Subject: [PATCH] [Docs] Cleanup links in nb (#828) --- examples/create-react-agent-memory.ipynb | 2 +- examples/create-react-agent-system-prompt.ipynb | 2 +- examples/human-in-the-loop.ipynb | 4 ++-- examples/human_in_the_loop/time-travel.ipynb | 2 +- examples/rag/langgraph_adaptive_rag_cohere.ipynb | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/create-react-agent-memory.ipynb b/examples/create-react-agent-memory.ipynb index 1588084c3..826d5e701 100644 --- a/examples/create-react-agent-memory.ipynb +++ b/examples/create-react-agent-memory.ipynb @@ -7,7 +7,7 @@ "source": [ "# How to add memory to the prebuilt ReAct agent\n", "\n", - "This tutorial will show how to add memory to the prebuilt ReAct agent. Please see [this tutorial](create-react-agent) for how to get started with the prebuilt ReAct agent\n", + "This tutorial will show how to add memory to the prebuilt ReAct agent. Please see [this tutorial](./create-react-agent.ipynb) for how to get started with the prebuilt ReAct agent\n", "\n", "All we need to do to enable memory is pass in a checkpointer to `create_react_agents`" ] diff --git a/examples/create-react-agent-system-prompt.ipynb b/examples/create-react-agent-system-prompt.ipynb index 4b664412d..6b04f77a1 100644 --- a/examples/create-react-agent-system-prompt.ipynb +++ b/examples/create-react-agent-system-prompt.ipynb @@ -7,7 +7,7 @@ "source": [ "# How to add a custom system prompt to the prebuilt ReAct agent\n", "\n", - "This tutorial will show how to add a custom system prompt to the prebuilt ReAct agent. Please see [this tutorial](create-react-agent) for how to get started with the prebuilt ReAct agent\n", + "This tutorial will show how to add a custom system prompt to the prebuilt ReAct agent. Please see [this tutorial](./create-react-agent.ipynb) for how to get started with the prebuilt ReAct agent\n", "\n", "You can add a custom system prompt by passing a string to the `messages_modifier` param." ] diff --git a/examples/human-in-the-loop.ipynb b/examples/human-in-the-loop.ipynb index b83629d2a..76c05d588 100644 --- a/examples/human-in-the-loop.ipynb +++ b/examples/human-in-the-loop.ipynb @@ -577,7 +577,7 @@ "\n", "There are multiple options, and the ideal option may depend on the specifics of your application and capabilities of your chosen LLM. Note that many chat models require that messages with tool calls be immediately followed by a tool message containing the result of the tool call. So our intervention may:\n", "\n", - "1. Update the parameters of the tool call before proceeding normally (see this [how-to guide](https://langchain-ai.github.io/langgraph/how-tos/time-travel/#pause-before-tools) for an example);\n", + "1. Update the parameters of the tool call before proceeding normally (see this [how-to guide](./human_in_the_loop/breakpoints.ipynb) for an example);\n", "2. Add a tool message to the conversation history indicating the user's desired intervention (see an example [here](https://langchain-ai.github.io/langgraph/tutorials/customer-support/customer-support/#state-assistant));\n", "3. Catch the tool call message, replacing it with a `AIMessage` asking for verification and only adding the tool call message to the conversation history if approved.\n", "\n", @@ -972,7 +972,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.1" + "version": "3.12.2" } }, "nbformat": 4, diff --git a/examples/human_in_the_loop/time-travel.ipynb b/examples/human_in_the_loop/time-travel.ipynb index c0ad709bc..b69f8a826 100644 --- a/examples/human_in_the_loop/time-travel.ipynb +++ b/examples/human_in_the_loop/time-travel.ipynb @@ -7,7 +7,7 @@ "source": [ "# How to view and update past graph state\n", "\n", - "Once you start [checkpointing](./persistence.ipynb) your graphs, you can easily **get** or **update** the state of the agent at any point in time. This permits a few things:\n", + "Once you start [checkpointing](../persistence.ipynb) your graphs, you can easily **get** or **update** the state of the agent at any point in time. This permits a few things:\n", "\n", "1. You can surface a state during an interrupt to a user to let them accept an action.\n", "2. You can **rewind** the graph to reproduce or avoid issues.\n", diff --git a/examples/rag/langgraph_adaptive_rag_cohere.ipynb b/examples/rag/langgraph_adaptive_rag_cohere.ipynb index a95fe0ab1..898727d98 100644 --- a/examples/rag/langgraph_adaptive_rag_cohere.ipynb +++ b/examples/rag/langgraph_adaptive_rag_cohere.ipynb @@ -28,7 +28,7 @@ "* Web-search\n", "* Iterative RAG\n", "\n", - "We'll use [Command R](https://txt.cohere.com/command-r/), a recent release from Cohere that:\n", + "We'll use [Command R](https://cohere.com/blog/command-r), a recent release from Cohere that:\n", "\n", "* Has strong accuracy on RAG and Tool Use\n", "* Has 128k context\n",