Skip to content

Simple chatbot using LangChain with RAG and Flask

Notifications You must be signed in to change notification settings

ashhass/Chatbot

Repository files navigation

Chatbot_With_UI

Simple chatbot with a flask web interface.

The chatbot leverages OpenAI API for user query comprehension complemented with RAG for up-to-date information retrieval.

Tools Used:

  1. LangChain framework: for user query synthesis and reply generation
  2. Flask: for web gui
  3. GPT-3.5: for language understanding
  4. Linkedin blogpost: for current information retrieval; Link

Steps to run:

  1. Download this github repository

  2. Create a virtual environment

    python -m venv venv

  3. Activate the virtual environment

    source venv/bin/activate or venv/bin/activate [for Windows]

  4. Install the requirements

    pip install -r requirements.txt

  5. Add your OpenAI API key in a .env file

  6. On the terminal run the command below

    python app.py

  7. App should not be running on localhost default port


Screen Shot 2024-01-11 at 1 49 47 PM

About

Simple chatbot using LangChain with RAG and Flask

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published