This project documents my learning journey with LangGraph, featuring incremental updates saved in separate files.
To get started with this project, follow these steps:
-
Clone the repository:
git clone https://github.com/dev-arctik/LangGraph_Learning.git cd LangGraph_Learning
-
Create a virtual environment (optional but recommended):
python -m venv venv
-
Activate the virtual environment:
-
On macOS and Linux:
source venv/bin/activate
-
On Windows:
venv\Scripts\activate
-
-
Install the required packages:
pip install -r requirements.txt
To run the code effectively, create a .env
file in the root directory to store your API keys and configuration settings. This is necessary for using the various APIs involved in the project.
You will get the langsmith api (optional) on langsmith Website
Create a .env
file and add the following lines:
# OpenAI
OPENAI_API_KEY="your_openai_api_key_here"
# LangSmith
LANGCHAIN_TRACING_V2=true
LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
LANGCHAIN_API_KEY="your_langchain_api_key_here"
LANGCHAIN_PROJECT="your_project_name_here"
# Tavily
TAVILY_API_KEY="your_tavily_api_key_here"
Replace 'your_openai_api_key_here' with your actual OpenAI API key.
Note: If you choose to use a different LLM (Language Learning Model), refer to the LangChain documentation and adjust the code as needed.
You can run individual files with the following command:
python [file_name.py]
I am learning from the LangChain Academy.