Skip to content

mfpNahu07/Langchain-Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Conversational AI Chatbot with Dynamic Memory & Sidebar Controls

A modern, production-ready AI Chatbot built with LangChain (v0.3+), Google Gemini 3.5 Flash and Streamlit.

✨ Features

  • Stateful Memory: Remembers past conversations and maintains context.
  • Dynamic Configuration: Adjust AI Temperature (Creativity) in real-time.
  • Sidebar Controls: Easy access to configuration and chat management.
  • Clean UI: Professional chat interface built with Streamlit.
  • Error Handling: Robust text extraction from Gemini responses.

🚀 Quick Start

Prerequisites

  • Python 3.8+
  • Google Gemini API Key

Installation

  1. Clone the repository: git clone https://github.com/mfpNahu07/Langchain-Chat cd Langchain-Chat

  2. Set up the virtual environment: python -m venv .venv .venv\Scripts\Activate.ps1 # Windows

    source .venv/bin/activate # macOS/Linux

  3. Install dependencies: pip install -r requirements.txt

  4. Configure your API Key: Create a .env file in the root directory:

    GOOGLE_API_KEY=your_gemini_api_key_here

  5. Run the application: python -m streamlit run app.py

🔧 Configuration

The app includes a sidebar for configuration:

  • AI Temperature: Controls the randomness/creativity of the AI. Lower is more deterministic, higher is more creative.

About

🤖 Conversational AI Chatbot with dynamic memory and real-time configuration built using LangChain, Gemini, and Streamlit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages