Skip to content

Developed a chatbot using LangChain and LangGraph, incorporating conversational memory and multi-language

Notifications You must be signed in to change notification settings

areebniyas/chat-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Chatbot Project

This project is a chatbot application built using LangChain and LangGraph. It supports maintaining conversational history and multi-language responses using the OpenAI API. The chatbot can switch between conversation threads, apply different templates, and manage conversation history efficiently.

Features

  • Conversational Memory: Maintains chat history and differentiates between user sessions.
  • Multi-Language Support: The chatbot can respond in different languages based on user input.
  • Custom Templates: Includes configurable templates for different chatbot personalities (e.g., pirate, assistant).
  • State Management: Utilizes LangGraph's state and memory management for effective conversation handling.
  • Message Trimming: Manages and trims conversation history to stay within token limits.
  • Streaming Mode: Supports streaming responses for real-time interactions.

Tech Stack

Setup

  1. Clone the repository:

    git clone <repository-url>
     cd chat-bot
  2. Setup environemnt variables:

  • Set LANGCHAIN_TRACING_V2 to "true".
  • Set LANGCHAIN_API_KEY and OPENAI_API_KEY (use getpass to input these securely).
  1. Run the Notebook:
  • Open the notebook in Google Colab or Jupyter Notebook.
  • Follow the cells to interact with the chatbot.

© Areeb Niyas

About

Developed a chatbot using LangChain and LangGraph, incorporating conversational memory and multi-language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published