diff --git a/docs/versioned_docs/version-0.2.x/how_to/agent_executor.ipynb b/docs/versioned_docs/version-0.2.x/how_to/agent_executor.ipynb index fa461416450..8cce9e77259 100644 --- a/docs/versioned_docs/version-0.2.x/how_to/agent_executor.ipynb +++ b/docs/versioned_docs/version-0.2.x/how_to/agent_executor.ipynb @@ -66,7 +66,7 @@ "```\n", "\n", "\n", - "For more details, see our [Installation guide](/docs/get_started/installation).\n", + "For more details, see our [Installation guide](/docs/installation).\n", "\n", "### LangSmith\n", "\n", diff --git a/docs/versioned_docs/version-0.2.x/installation.mdx b/docs/versioned_docs/version-0.2.x/installation.mdx new file mode 100644 index 00000000000..e84ff564604 --- /dev/null +++ b/docs/versioned_docs/version-0.2.x/installation.mdx @@ -0,0 +1,89 @@ +--- +sidebar_position: 2 +--- + +# Installation + +## Official release + +To install LangChain run: + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; +import CodeBlock from "@theme/CodeBlock"; + + + + pip install langchain + + + conda install langchain -c conda-forge + + + +This will install the bare minimum requirements of LangChain. +A lot of the value of LangChain comes when integrating it with various model providers, datastores, etc. +By default, the dependencies needed to do that are NOT installed. You will need to install the dependencies for specific integrations separately. + +## From source + +If you want to install from source, you can do so by cloning the repo and be sure that the directory is `PATH/TO/REPO/langchain/libs/langchain` running: + +```bash +pip install -e . +``` + +## LangChain core +The `langchain-core` package contains base abstractions that the rest of the LangChain ecosystem uses, along with the LangChain Expression Language. It is automatically installed by `langchain`, but can also be used separately. Install with: + +```bash +pip install langchain-core +``` + +## LangChain community +The `langchain-community` package contains third-party integrations. It is automatically installed by `langchain`, but can also be used separately. Install with: + +```bash +pip install langchain-community +``` + +## LangChain experimental +The `langchain-experimental` package holds experimental LangChain code, intended for research and experimental uses. +Install with: + +```bash +pip install langchain-experimental +``` + +## LangGraph +`langgraph` is a library for building stateful, multi-actor applications with LLMs, built on top of (and intended to be used with) LangChain. +Install with: + +```bash +pip install langgraph +``` +## LangServe +LangServe helps developers deploy LangChain runnables and chains as a REST API. +LangServe is automatically installed by LangChain CLI. +If not using LangChain CLI, install with: + +```bash +pip install "langserve[all]" +``` +for both client and server dependencies. Or `pip install "langserve[client]"` for client code, and `pip install "langserve[server]"` for server code. + +## LangChain CLI +The LangChain CLI is useful for working with LangChain templates and other LangServe projects. +Install with: + +```bash +pip install langchain-cli +``` + +## LangSmith SDK +The LangSmith SDK is automatically installed by LangChain. +If not using LangChain, install with: + +```bash +pip install langsmith +``` diff --git a/docs/versioned_docs/version-0.2.x/tutorials/agents.ipynb b/docs/versioned_docs/version-0.2.x/tutorials/agents.ipynb index 59d3f23a73b..3e68aeabf2c 100644 --- a/docs/versioned_docs/version-0.2.x/tutorials/agents.ipynb +++ b/docs/versioned_docs/version-0.2.x/tutorials/agents.ipynb @@ -63,7 +63,7 @@ "```\n", "\n", "\n", - "For more details, see our [Installation guide](/docs/get_started/installation).\n", + "For more details, see our [Installation guide](/docs/installation).\n", "\n", "### LangSmith\n", "\n", diff --git a/docs/versioned_docs/version-0.2.x/tutorials/chatbot.ipynb b/docs/versioned_docs/version-0.2.x/tutorials/chatbot.ipynb index 6caa2fe421a..6e9e2bea0a1 100644 --- a/docs/versioned_docs/version-0.2.x/tutorials/chatbot.ipynb +++ b/docs/versioned_docs/version-0.2.x/tutorials/chatbot.ipynb @@ -75,7 +75,7 @@ "```\n", "\n", "\n", - "For more details, see our [Installation guide](/docs/get_started/installation).\n", + "For more details, see our [Installation guide](/docs/installation).\n", "\n", "### LangSmith\n", "\n", diff --git a/docs/versioned_docs/version-0.2.x/tutorials/extraction.ipynb b/docs/versioned_docs/version-0.2.x/tutorials/extraction.ipynb index 64a5eac640f..40b37a45444 100644 --- a/docs/versioned_docs/version-0.2.x/tutorials/extraction.ipynb +++ b/docs/versioned_docs/version-0.2.x/tutorials/extraction.ipynb @@ -65,7 +65,7 @@ "```\n", "\n", "\n", - "For more details, see our [Installation guide](/docs/get_started/installation).\n", + "For more details, see our [Installation guide](/docs/installation).\n", "\n", "### LangSmith\n", "\n", diff --git a/docs/versioned_docs/version-0.2.x/tutorials/llm_chain.ipynb b/docs/versioned_docs/version-0.2.x/tutorials/llm_chain.ipynb index aedd0cf7a99..e8fe6bb4b80 100644 --- a/docs/versioned_docs/version-0.2.x/tutorials/llm_chain.ipynb +++ b/docs/versioned_docs/version-0.2.x/tutorials/llm_chain.ipynb @@ -64,7 +64,7 @@ "```\n", "\n", "\n", - "For more details, see our [Installation guide](/docs/get_started/installation).\n", + "For more details, see our [Installation guide](/docs/installation).\n", "\n", "### LangSmith\n", "\n", diff --git a/docs/versioned_docs/version-0.2.x/tutorials/sql_qa.ipynb b/docs/versioned_docs/version-0.2.x/tutorials/sql_qa.ipynb index aa8a785d658..1da47bac648 100644 --- a/docs/versioned_docs/version-0.2.x/tutorials/sql_qa.ipynb +++ b/docs/versioned_docs/version-0.2.x/tutorials/sql_qa.ipynb @@ -117,7 +117,7 @@ "\n", "## Chains {#chains}\n", "\n", - "Chains (i.e., compositions of LangChain [Runnables](/docs/expression_language/)) support applications whose steps are predictable. We can create a simple chain that takes a question and does the following:\n", + "Chains (i.e., compositions of LangChain [Runnables](/docs/concepts#langchain-expression-language)) support applications whose steps are predictable. We can create a simple chain that takes a question and does the following:\n", "- convert the question into a SQL query;\n", "- execute the query;\n", "- use the result to answer the original question.\n", diff --git a/docs/versioned_docs/version-0.2.x/tutorials/summarization.ipynb b/docs/versioned_docs/version-0.2.x/tutorials/summarization.ipynb index c06044b8493..492ed1ebdeb 100644 --- a/docs/versioned_docs/version-0.2.x/tutorials/summarization.ipynb +++ b/docs/versioned_docs/version-0.2.x/tutorials/summarization.ipynb @@ -87,7 +87,7 @@ "```\n", "\n", "\n", - "For more details, see our [Installation guide](/docs/get_started/installation).\n", + "For more details, see our [Installation guide](/docs/installation).\n", "\n", "### LangSmith\n", "\n", diff --git a/docs/versioned_sidebars/version-0.2.x-sidebars.json b/docs/versioned_sidebars/version-0.2.x-sidebars.json index 2ff275acc3a..e607899e236 100644 --- a/docs/versioned_sidebars/version-0.2.x-sidebars.json +++ b/docs/versioned_sidebars/version-0.2.x-sidebars.json @@ -1,6 +1,15 @@ { "docs": [ - "introduction", + { + "type": "category", + "label": "Introduction", + "collapsed": false, + "collapsible": false, + "link": {"type": "doc", "id": "introduction"}, + "items": [ + "installation" + ] + }, { "type": "doc", "id": "tutorials/index",