From 101c4a9138d183f8efcc29fc99d734ddf3a23d51 Mon Sep 17 00:00:00 2001 From: Aya Tanikawa <15815271+ayatnkw@users.noreply.github.com> Date: Mon, 2 Sep 2024 18:28:00 +0200 Subject: [PATCH 1/2] fix tiny tiny typos --- docs/core_docs/docs/tutorials/agents.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/core_docs/docs/tutorials/agents.mdx b/docs/core_docs/docs/tutorials/agents.mdx index 201339008d9d..de4749405a65 100644 --- a/docs/core_docs/docs/tutorials/agents.mdx +++ b/docs/core_docs/docs/tutorials/agents.mdx @@ -26,7 +26,7 @@ In this tutorial we will build an agent that can interact with multiple differen By definition, agents take a self-determined, input-dependent sequence of steps before returning a user-facing output. This makes debugging these systems particularly tricky, and observability particularly important. [LangSmith](https://smith.langchain.com) is especially useful for such cases. -When building with LangChain, all steps will automatically be traced in LangSmith. To set up LangSmith we just need set the following environment variables: +When building with LangChain, all steps will automatically be traced in LangSmith. To set up LangSmith we just need to set the following environment variables: ```bash export LANGCHAIN_TRACING_V2="true" @@ -42,7 +42,7 @@ We first need to create the tools we want to use. We will use two tools: [Tavily ### [Tavily](https://app.tavily.com) -We have a built-in tool in LangChain to easily use Tavily search engine as tool. +We have a built-in tool in LangChain to easily use Tavily search engine as a tool. Note that this requires a Tavily API key set as an environment variable named `TAVILY_API_KEY` - they have a free tier, but if you don’t have one or don’t want to create one, you can always ignore this step. ```typescript @@ -100,7 +100,7 @@ console.log(retrieverResult[0]); */ ``` -Now that we have populated our index that we will do doing retrieval over, we can easily turn it into a tool (the format needed for an agent to properly use it): +Now that we have populated our index that we will bo doing retrieval over, we can easily turn it into a tool (the format needed for an agent to properly use it): ```typescript import { createRetrieverTool } from "langchain/tools/retriever"; @@ -150,7 +150,7 @@ const prompt = await pull( ``` Now, we can initalize the agent with the LLM, the prompt, and the tools. The agent is responsible for taking in input and deciding what actions to take. -Crucially, the Agent does not execute those actions - that is done by the AgentExecutor (next step). For more information about how to thing about these components, see our [conceptual guide](/docs/concepts#agents). +Crucially, the Agent does not execute those actions - that is done by the AgentExecutor (next step). For more information about how to think about these components, see our [conceptual guide](/docs/concepts#agents). ```typescript import { createOpenAIFunctionsAgent } from "langchain/agents"; @@ -163,7 +163,7 @@ const agent = await createOpenAIFunctionsAgent({ ``` Finally, we combine the agent (the brains) with the tools inside the AgentExecutor (which will repeatedly call the agent and execute tools). -For more information about how to thing about these components, see our [conceptual guide](/docs/concepts#agents). +For more information about how to think about these components, see our [conceptual guide](/docs/concepts#agents). ```typescript import { AgentExecutor } from "langchain/agents"; From 0b37032894a9ac980ac0176ceeb629599b93ed64 Mon Sep 17 00:00:00 2001 From: Aya Tanikawa <15815271+ayatnkw@users.noreply.github.com> Date: Mon, 2 Sep 2024 18:33:37 +0200 Subject: [PATCH 2/2] fix typo --- docs/core_docs/docs/tutorials/agents.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core_docs/docs/tutorials/agents.mdx b/docs/core_docs/docs/tutorials/agents.mdx index de4749405a65..d3c0ad4ef4f0 100644 --- a/docs/core_docs/docs/tutorials/agents.mdx +++ b/docs/core_docs/docs/tutorials/agents.mdx @@ -100,7 +100,7 @@ console.log(retrieverResult[0]); */ ``` -Now that we have populated our index that we will bo doing retrieval over, we can easily turn it into a tool (the format needed for an agent to properly use it): +Now that we have populated our index that we will be doing retrieval over, we can easily turn it into a tool (the format needed for an agent to properly use it): ```typescript import { createRetrieverTool } from "langchain/tools/retriever";