forked from langchain-ai/langchain
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
145 changed files
with
11,013 additions
and
11,694 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,49 @@ | ||
# Installation | ||
|
||
import Installation from "@snippets/get_started/installation.mdx" | ||
## Official release | ||
|
||
<Installation/> | ||
To install LangChain run: | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
import CodeBlock from "@theme/CodeBlock"; | ||
|
||
<Tabs> | ||
<TabItem value="pip" label="Pip" default> | ||
<CodeBlock language="bash">pip install langchain</CodeBlock> | ||
</TabItem> | ||
<TabItem value="conda" label="Conda"> | ||
<CodeBlock language="bash">conda install langchain -c conda-forge</CodeBlock> | ||
</TabItem> | ||
</Tabs> | ||
|
||
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. | ||
However, there are two other ways to install LangChain that do bring in those dependencies. | ||
|
||
To install modules needed for the common LLM providers, run: | ||
|
||
```bash | ||
pip install langchain[llms] | ||
``` | ||
|
||
To install all modules needed for all integrations, run: | ||
|
||
```bash | ||
pip install langchain[all] | ||
``` | ||
|
||
Note that if you are using `zsh`, you'll need to quote square brackets when passing them as an argument to a command, for example: | ||
|
||
```bash | ||
pip install 'langchain[all]' | ||
``` | ||
|
||
## 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 . | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.