LangGraph Agentic Chatbot
This repository contains a LangGraph-based chatbot that utilizes Gradio for interface rendering and integrates OpenAI's language model capabilities and custom tools for enhanced functionality. This project allowed me to learn and explore the capabilities of LangGraph and Agnetic workflows.
Tech Stack
Frontend:
Backend:
APIs:
Version Control:
Setup
To run this project locally, follow these steps:
Clone the repository:
git clone https://github.com/your-repo/langgraph-agentic-chatbot.git
Navigate to the project directory:
cd langgraph-agentic-chatbot
Install dependencies:
pip install -r requirements.txt
Set up environment variables:
Create a
.env
file in the root directory and add your OpenAI API key and LangChain API key to trace the chatbot's interactions.LANGCHAIN_TRACING_V2=true LANGCHAIN_ENDPOINT="https://api.example.langchain.com" LANGCHAIN_API_KEY="your_langchain_api_key" LANGCHAIN_PROJECT="your_langchain_project"
OPENAI_API_KEY="your_openai_api_key" TAVILY_API_KEY="your_tavily_api_key"
Run the Gradio application:
gradio agent/main.py
Access the chatbot:
Open
http://localhost:7860
in your web browser to interact with the chatbot.