Skip to content

LotfiMEZIANI/chatbot-langchain-openai-streamlit

Repository files navigation

Chatbot with LangChain, OpenAI API, and Streamlit

Overview

This project demonstrates the implementation of a chatbot using LangChain and the OpenAI API, with Streamlit for the user interface.

Getting Started

Prerequisites

  • Python 3.11.9
  • OpenAI API key

Project Setup

  1. Create a Python virtual environment:

    python -m venv .venv
  2. Activate the virtual environment:

    source .venv/bin/activate
  3. Install the required dependencies:

     pip install -r requirements.txt
  4. Copy .env.template and rename it to .env. ≥ Make sure to add your OpenAI API key to the file.

  5. To start the assistant, run this command in your terminal:

    python main.py
  6. To launch the assistant with a graphical interface, use this command:

     streamlit run chatbot_interface.py

About

This project demonstrates the use of generative AI models through Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages