langchain-ai / langchain-academy
git clone https://github.com/langchain-ai/langchain-academy.git
🔥 on GitHub Trending today
—
+1
stars, 24h · #552
—
stars, 7 days
—
stars, 30 days
3.0k
★ total
1.9k
forks · 31 open issues
Star history starts 2026-10-20; the chart appears after the second daily snapshot.
LanguageJupyter Notebook
LicenseMIT
Created2024-07-23 (2y ago)
Last push4mo ago
Watchers43
OwnerOrganization
Seen on GitHub Trending
- 2026-10-20 — #15 daily in jupyter-notebook · +1 ★
Links
- GitHub: github.com/langchain-ai/langchain-academy
- Homepage: https://academy.langchain.com
- Releases · Issues · Hacker News mentions
README excerpt
.svg) ## Introduction Welcome to LangChain Academy, Introduction to LangGraph! This is a growing set of modules focused on foundational concepts within the LangChain ecosystem. Module 0 is basic setup and Modules 1 - 5 focus on building in LangGraph, progressively adding more advanced themes. Module 6 addresses deploying your agents. In each module folder, you'll see a set of notebooks. A link to the LangChain Academy lesson is at the top of each notebook to guide you through the topic. Each module also has a `studio` subdirectory, with a set of relevant graphs that we will explore using the LangGraph API and Studio. ## Setup ### Python version Make sure you're using Python version 3.11, 3.12, or 3.13. [code] ### Clone repo [code] Or, if you prefer, you can download a zip file here. ### Create an environment and install dependencies #### Mac/Linux/WSL [code] #### Windows Powershell [code] ### Running notebooks If you don't have Jupyter set up, follow the installation instructions here. [code] ### Setting up env variables Briefly going over how to set up environment variables. #### Mac/Linux/WSL [code] #### Windows Powershell [code] ### Set OpenAI API key * If you don't have an OpenAI API key, you can sign up here. * Set `OPENAI_API_KEY` in your environment ### Sign up and Set LangSmith API * Sign up for LangSmith here, find out more about LangSmith and how to use it within your workflow here. * Set `LANGSMITH_API_KEY`, `LANGSMITH_TRACING_V2="true"` `LANGSMITH_PROJECT="langchain-academy"`in your environment * If you are on the EU instance also set `LANGSMITH_ENDPOINT`="https://eu.api.smith.langchain.com" as well. ### Set up Tavily API for web search * Tavily Search API is a search engine optimized for LLMs and RAG, aimed at efficient, quick, and persistent search results. * You can sign up for an API key here. It's easy to sign up and offers a very generous free tier. Some lessons (in Module 4) will use Tavily. * Set `TAVILY_API_KEY` in your environment. ### Set up Studio * Studio is a custom IDE for viewing and testing agents. * Studio can be run locally and opened in your browser on Mac, Windows, and Linux. * See documentation here on the local Studio development server. * Graphs for LangGraph Studio are in the `module-x/studio/` folders for module 1-5. * To start the local development server, make sure your virtual environment is active and run the following command in your terminal in the `/studio` directory in each module: [code] You should see the following output: [code] Open your browser and navigate to the Studio UI: `https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024`. * To use Studio, you will need to create a .env file with the relevant API keys * Run this from the command line to create these files for module 1 to 5, as an example: [code]