Skip to content

ShahuKor/WebChat-Ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebChat Ai - A LangChain Chatbot with Streamlit GUI

Features

  • Website Interaction: The chatbot uses LangChain to interact with and extract information from various websites.
  • Large Language Model Integration: Powered by GPT-4.
  • Streamlit GUI: A clean and intuitive user interface built with Streamlit.
  • Python-based: Entirely coded in Python.
  • CSS: Used CSS to make the GUI more attractive and user-friendly.

How Project works

  • User Paste's any website link to the input box.
  • All the website text is scrapped using BeautifulSoup.
  • Text is split into small chunks so that it can be fed to the Embeddings Model.
  • Embeddings model performs vectorization and stores it in vector data base.
  • The user query is also embeded and top matching text present in the vector data base is found out through semantic search.
  • The Top ranked text found from our webpage data and the user query both are feeded to the LLM model.
  • LLM model produces the answer to the query and displays it to the user.

RAG Bot and project flow

  • A RAG chatbot is an AI-powered chatbot that uses Retrieval Augmented Generation (RAG) to provide more accurate and relevant responses than traditional chatbots.

RAG-diagram

Project Screenshots and Demo

  • For the Demo we are using Wikipedia Page of "INDIA IN OLYMPICS 2024".
Screenshot 2024-09-02 at 4 19 33 PM
  • Paste the link of Wikipedia website in the input box.
Screenshot 2024-09-02 at 4 19 43 PM
  • After the link is pasted, the bot automatically start.
Screenshot 2024-09-02 at 4 19 50 PM
  • Question 1

Screenshot 2024-09-02 at 4 20 22 PM
- Question 2 Screenshot 2024-09-02 at 4 20 51 PM
- Question 3. The bot also remembers the chat history and answers accordingly. Screenshot 2024-09-02 at 4 22 16 PM
- Question 4. It also summarizes the webpage information. Screenshot 2024-09-02 at 4 25 34 PM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published