Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs[patch]: Update QA use-case docs how tos #5457

Merged
merged 1 commit into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/core_docs/docs/how_to/agent_executor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"In this tutorial we will build an agent that can interact with multiple different tools: one being a local database, the other being a search engine. You will be able to ask this agent questions, watch it call tools, and have conversations with it.\n",
"\n",
":::{.callout-important}\n",
"This section will cover building with LangChain Agents. LangChain Agents are fine for getting started, but past a certain point you will likely want flexibility and control that they do not offer. For working with more advanced agents, we'd recommend checking out [LangGraph](/docs/concepts/#langgraph)\n",
"This section will cover building with LangChain Agents. LangChain Agents are fine for getting started, but past a certain point you will likely want flexibility and control that they do not offer. For working with more advanced agents, we'd recommend checking out [LangGraph](/docs/concepts/#langgraph).\n",
":::\n",
"\n",
"## Concepts\n",
Expand Down
24 changes: 15 additions & 9 deletions docs/core_docs/docs/how_to/chatbots_memory.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
"source": [
"# How to manage memory\n",
"\n",
":::info Prerequisites\n",
"\n",
"This guide assumes familiarity with the following:\n",
"\n",
"- [Chatbots](/docs/tutorials/chatbot)\n",
"\n",
":::\n",
"\n",
"A key feature of chatbots is their ability to use content of previous conversation turns as context. This state management can take several forms, including:\n",
"\n",
"- Simply stuffing previous messages into a chat model prompt.\n",
Expand All @@ -23,14 +31,6 @@
"\n",
"You’ll need to install a few packages, and set any LLM API keys:\n",
"\n",
"```{=mdx}\n",
"import Npm2Yarn from \"@theme/Npm2Yarn\";\n",
"\n",
"<Npm2Yarn>\n",
" @langchain/core\n",
"</Npm2Yarn>\n",
"```\n",
"\n",
"Let’s also set up a chat model that we’ll use for the below examples:\n",
"\n",
"```{=mdx}\n",
Expand Down Expand Up @@ -1127,7 +1127,13 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Note that invoking the chain again will generate another summary generated from the initial summary plus new messages and so on. You could also design a hybrid approach where a certain number of messages are retained in chat history while others are summarized."
"Note that invoking the chain again will generate another summary generated from the initial summary plus new messages and so on. You could also design a hybrid approach where a certain number of messages are retained in chat history while others are summarized.\n",
"\n",
"## Next steps\n",
"\n",
"You've now learned how to manage memory in your chatbots\n",
"\n",
"Next, check out some of the other guides in this section, such as [how to add retrieval to your chatbot](/docs/how_to/chatbots_retrieval)."
]
}
],
Expand Down
Loading
Loading