Skip to content
Fluffy-debugerPublic

About

AskWeb is a browser extension that turns any website into a chatbot. Instead of scrolling through long articles or hunting for specs on Amazon, you can simply ask the page a question and get an instant answer.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AskWeb

AskWeb is a Chrome extension that lets users ask questions about the website they are currently visiting.

Instead of manually reading long articles, blogs, documentation pages, or wiki pages, users can simply ask questions in natural language and get answers based on the content of that webpage.

This project was built to understand how RAG (Retrieval-Augmented Generation) works in a real-world application.


What AskWeb Does

AskWeb follows a simple flow:

  1. Extracts content from the current webpage
  2. Cleans the page content using Mozilla Readability
  3. Splits content into smaller chunks
  4. Converts text into vector embeddings
  5. Stores vectors in ChromaDB
  6. Retrieves the most relevant chunks based on the user's question
  7. Uses Gemini to generate an answer from the retrieved context

Tech Stack

Frontend (Chrome Extension)

  • React
  • Tailwind CSS
  • Mozilla Readability
  • Chrome Extension APIs
  • React Markdown

Backend

  • FastAPI
  • LangChain
  • Google Gemini
  • HuggingFace Embeddings (all-MiniLM-L6-v2)
  • ChromaDB

Project Architecture

Project Architecture

Features

  • Ask questions about any webpage
  • Reads and understands webpage content
  • Filters unnecessary page noise
  • Supports markdown-formatted answers
  • Keeps chat history during current session
  • Works on articles, blogs, wiki pages, and documentation

Screenshots

ExampleDemo2

ExampleDemo1


Installation & Setup

1. Clone Repository

git clone https://github.com/Fluffy-debuger/AskWeb.git

cd AskWeb

2. Backend Setup

Go to the backend folder:

cd WEBRAG

Install dependencies:

pip install -r requirements.txt

Create .env file:

GOOGLE_API_KEY= <Google_api_key>
HF_TOKEN = <HuggingFace_Token_key>

Run backend server:

uvicorn main:app --reload

3. Frontend Setup

Move into frontend folder:

cd frontend

Install dependencies:

npm install

Build extension:

npm run build

Load Extension in Chrome

  1. Open Chrome
  2. Go to:
chrome://extensions/
  1. Enable Developer Mode
  2. Click Load unpacked
  3. Select your frontend build (ie.dist) folder (after runing npm run build)

Extension is now ready.


Limitations

  • Works best on text-heavy pages
  • No persistent memory
  • Vector DB resets on every request

Future Improvements

  • Persistent vector database
  • Multi-page context memory
  • Better content filtering
  • PDF support
  • Improved UI

About

AskWeb is a browser extension that turns any website into a chatbot. Instead of scrolling through long articles or hunting for specs on Amazon, you can simply ask the page a question and get an instant answer.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages