Skip to content

sameersk2k/LangChain-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DocuGenie : LangChain-Chatbot with Streamlit GUI

Welcome to this project. The main objective of this chatbot application is to enable its user to upload the url of any webpage and then able to ask questions in form of chat to get expected responses to the questions asked by the user.

Screenshot 2024-03-27 at 4 05 37 AM Screenshot 2024-03-27 at 4 07 19 AM

Features

  • Website Interaction: The chatbot uses the latest version of LangChain to interact with and extract information from various websites.
  • Large Language Model Integration: Compatibility with models. In this code I am using GPT-4, but you can change it to any other model like Llama2.
  • Streamlit GUI: A clean and intuitive user interface built with Streamlit, making it accessible for users with varying levels of technical expertise.
  • Python-based: Entirely coded in Python.

Brief explanation of how RAG works

DBBLOG-3334-image001

A RAG bot, or Retrieval-Augmented Generation bot, enhances the capabilities of our LLM by incorporating additional information provided in the prompt. Initially, we vectorize the text we intend to use as "augmented knowledge" and compare it with the prompt. The system identifies the most relevant text based on similarity scores and uses it to enrich the conversation. This selected text acts as a prefix, providing context and guiding the responses generated by our LLM. We have used chroma as our vector storage and OpenAI for embedding our text chunks into vectors.

Required packages

pip install streamlit langchain langchain-openai validators python-dotenv

create .env file

OPENAI_API_KEY = your api key goes here

Run application

streamlit run app.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages