Skip to content

🧠 AI Chatbot for Any Webpage + Chrome Extension πŸš€ A full-stack AI-powered chatbot system that lets you query the content of any webpage directly from your browser. Features a FastAPI backend for text extraction, vector embeddings, and Qdrant search, and a Chrome extension for real-time interaction.

Notifications You must be signed in to change notification settings

Abhijit1102/chrome_extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 AI-Powered URL QA Chatbot & Chrome Extension

This full-stack project allows you to ask intelligent questions about the content of any webpage. It features:

  • βœ… A FastAPI backend that scrapes, embeds, stores, and retrieves contextual data from web URLs.
  • 🧩 A Chrome Extension that connects to this backend and allows users to interact with it directly from their browser.

🌐 Backend – FastAPI Service

Features

  • πŸ” Scrape and extract text from any webpage
  • 🧠 Use HuggingFace embeddings to vectorize text
  • πŸš€ Store and query vectors using Qdrant
  • πŸ€– AI chatbot generates context-aware answers
  • πŸ—ƒοΈ Logs queries and responses to MongoDB

Tech Stack

  • FastAPI
  • Qdrant
  • HuggingFace Transformers
  • MongoDB (via motor)
  • BeautifulSoup for web scraping

API Endpoints

Method Endpoint Description
GET /api/v1/health Check if the API is up
POST /api/v1/process_url Process a webpage and store embeddings
POST /api/v1/get_answer Ask a question and get an AI-generated answer
POST /api/v1/delete_collection Clear Qdrant vector collection

Run Backend

pip install -r requirements.txt
uvicorn app:app --reload

🧩 Chrome Extension – Frontend Interface

Features

  • πŸ“₯ Loads content from the current tab URL

  • 🧠 Asks questions and gets AI answers

  • πŸ’¬ Display interface using a popup

  • Uses Chrome APIs (tabs, cookies, storage, etc.)

πŸ’‘ How It Works

  • Open any webpage in your browser

  • Click the Chrome extension and hit "Load URL"

  • Ask any question about the webpage content

  • Get a contextual answer from the backend AI

πŸ›‘οΈ Environment Variables (if applicable)

  • Set up the following in your .env file or system environment:

  • MONGODB_URI

  • QDRANT_URL or local config

  • HuggingFace modela details (in embeddings.py)

About

🧠 AI Chatbot for Any Webpage + Chrome Extension πŸš€ A full-stack AI-powered chatbot system that lets you query the content of any webpage directly from your browser. Features a FastAPI backend for text extraction, vector embeddings, and Qdrant search, and a Chrome extension for real-time interaction.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published