Install Langchain from Github

What is LangChain?

LangChain is an innovative library designed to amplify the potential of Large Language Models (LLMs). With the rise of LLMs, the possibilities for developers are expanding, but LangChain takes it to the next level by enabling the integration of LLMs with other computational and knowledge sources. It doesn’t just facilitate the isolated usage of LLMs; rather, it extends their capabilities to a more complex and dynamic level.

Some Applications Made Possible by LangChain:

  • Question Answering over Specific Documents: LangChain allows you to structure question-answering over particular databases such as Notion.
  • Chatbots: Create engaging chatbots.
  • Agents with Integrations: Combine the power of LLMs like ChatGPT with tools like WolframAlpha to create intelligent agents.

Installing LangChain

For basic LangChain installation you can simply run \

pip install langchain

But if you need the cutting edge or need to install from your own fork you can use one of the following:

Install the latest version of LangChain directly from Github

You can pip install from Github with

pip install -e git+https://github.com/langchain/langchain.git#egg=langchain&subdirectory=libs/langchain

Or you can...

Install LangChain from Github in a requirements.txt file

if you have a requirements.txt file simply add this line!

-e git+https://github.com/langchain/langchain.git@enumerate-stuff#egg=langchain&subdirectory=libs/langchain
requirements.txt

Manually

Or you can manually do it in two steps like this!

git clone https://github.com/langchain-ai/langchain.git
pip install -e langchain/libs/langchain

GitHub - langchain-ai/langchain: ⚡ Building applications with LLMs through composability ⚡
⚡ Building applications with LLMs through composability ⚡ - GitHub - langchain-ai/langchain: ⚡ Building applications with LLMs through composability ⚡