Docs: Update Rag tutorial so it includes an additional notebook cell with pip installs of required langchain_chroma and langchain_community. (#23204)

Description: Update Rag tutorial notebook so it includes an additional
notebook cell with pip installs of required langchain_chroma and
langchain_community.

This fixes the issue with the rag tutorial gives you a 'missing modules'
error if you run code in the notebook as is.

---------

Co-authored-by: Chester Curme <chester.curme@gmail.com>
This commit is contained in:
Yahkeef Davis 2024-06-20 09:22:49 -04:00 committed by GitHub
parent 41f7620989
commit b03c801523
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,7 +62,7 @@
"\n", "\n",
"### Installation\n", "### Installation\n",
"\n", "\n",
"To install LangChain run:\n", "This tutorial requires these langchain dependencies:\n",
"\n", "\n",
"```{=mdx}\n", "```{=mdx}\n",
"import Tabs from '@theme/Tabs';\n", "import Tabs from '@theme/Tabs';\n",
@ -71,10 +71,10 @@
"\n", "\n",
"<Tabs>\n", "<Tabs>\n",
" <TabItem value=\"pip\" label=\"Pip\" default>\n", " <TabItem value=\"pip\" label=\"Pip\" default>\n",
" <CodeBlock language=\"bash\">pip install langchain</CodeBlock>\n", " <CodeBlock language=\"bash\">pip install langchain langchain_community langchain_chroma</CodeBlock>\n",
" </TabItem>\n", " </TabItem>\n",
" <TabItem value=\"conda\" label=\"Conda\">\n", " <TabItem value=\"conda\" label=\"Conda\">\n",
" <CodeBlock language=\"bash\">conda install langchain -c conda-forge</CodeBlock>\n", " <CodeBlock language=\"bash\">conda install langchain langchain_community langchain_chroma -c conda-forge</CodeBlock>\n",
" </TabItem>\n", " </TabItem>\n",
"</Tabs>\n", "</Tabs>\n",
"\n", "\n",
@ -124,7 +124,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 1, "execution_count": null,
"id": "26ef9d35", "id": "26ef9d35",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -956,7 +956,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.11.4" "version": "3.10.4"
} }
}, },
"nbformat": 4, "nbformat": 4,