Skip to content

A LangGraph-powered chatbot project with Streamlit frontends, supporting both in-memory and SQLite-based conversation persistence, real-time streaming responses, and multi-session chat management.

License

Notifications You must be signed in to change notification settings

akarshankapoor7/ChatBot-using-LangGraph

Repository files navigation

ChatBot-using-LangGraph

🤖 LangGraph Chatbot with Streamlit UI

An interactive Generative AI chatbot built using LangGraph and Streamlit, featuring persistent chat storage, multi-session handling, and a clean ChatGPT-like sidebar for navigating previous conversations.


🚀 Features

  • Multi-session chat: Start a new chat anytime and revisit old ones (sessions displayed as session-1, session-2, etc.).
  • Persistent storage: Chats are saved using SQLite (SqliteSaver) so history is retained even after restarting.
  • Sidebar navigation: A non-collapsible sidebar on the left, showing all active sessions with the latest user message or session number.
  • Simple & clean UI: Chat interface similar to ChatGPT with smooth session switching.

🛠️ Tech Stack


📂 Project Structure

. ├── .env # Store your API keys here ├── requirements.txt # Python dependencies

├── 01_ChatBot_with_memory_checkpoint.ipynb # Jupyter Notebook for experimentation

│ ├── ChatBot_backend.py # Backend (memory only) --> ├── Streamlit_ChatBot_frontend.py # Streamlit frontend (memory only) ├── Streamlit_Chatbot_frontend_UI_1.png # Screenshot for memory-only chatbot │

├── ChatBot_database_backend.py # Backend (with SQLite database) --> ├── Streamlit_frontend_database.py # Streamlit frontend (with SQLite DB) ├── Streamlit_frontend_database_UI_2.png # Screenshot for DB chatbot │

├── chatbot_memory.db # SQLite database (created at runtime) │

├── LICENSE └── README.md

2️⃣ Create virtual environment python -m venv lgraph

source lgraph/bin/activate # Mac/Linux

lgraph\Scripts\activate # Windows

3️⃣ Install dependencies pip install -r requirements.txt

About

A LangGraph-powered chatbot project with Streamlit frontends, supporting both in-memory and SQLite-based conversation persistence, real-time streaming responses, and multi-session chat management.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published