A Chrome extension that uses AI to improve YouTube search results with two powerful modes:
- Smart Reranker: Automatically reorders search results based on semantic relevance
- Tag Collector: Finds and collects videos matching specific tags across hundreds of results
-
Install Python (if you don't have it):
- Download Python 3.10 or newer from python.org
- During installation, check "Add Python to PATH"
-
Open PowerShell in the project folder:
- Right-click the folder → "Open in Terminal" or "Open PowerShell window here"
-
Create a virtual environment:
python -m venv .venv -
Activate the virtual environment:
.venv\Scripts\Activate.ps1
-
Install dependencies:
pip install -r backend/requirements.txt
⏱️ This may take a few minutes. First run will download AI models (~500MB).
-
Start the backend:
python backend/app.pyYou should see:
Running on http://127.0.0.1:5000Keep this window open while using the extension.
-
Open Google Chrome and go to:
chrome://extensions -
Toggle Developer mode ON (top-right corner)
-
Click "Load unpacked"
-
Select the
extensionfolder from this project -
You should see "AI Social Search" appear in your extensions
For Smart Reranker Mode:
- Go to YouTube and search for anything (e.g., "apple")
- Click the extension icon in your browser toolbar
- Click "Smart Reranker" mode
- Click "Save" to enable
- Refresh the YouTube page
- Results are now reordered by AI relevance with colored highlights!
For Tag Collector Mode:
- Go to YouTube and search broadly (e.g., "art")
- Click the extension icon
- Click "Tag Collector" mode
- Select tags or type custom ones (e.g., "watercolor, painting")
- Add negative tags to exclude (e.g., "music, shorts")
- Set min score (15-30 recommended) and max videos (50-100)
- Click "Start Collecting"
- The page will auto-scroll and collect matching videos
- Copy links or create a playlist when done!
Backend won't start?
- Make sure you activated the virtual environment (
.venv\Scripts\Activate.ps1) - Try:
pip install --upgrade pipthen reinstall requirements
Extension not working?
- Make sure the backend is running (check PowerShell window)
- In the extension popup, verify the URL is
http://127.0.0.1:5000/search - Check that "Enable semantic reranking" is ON
No videos collected?
- Lower the minimum score (try 15%)
- Make sure you're on a YouTube search results page
- Try broader search terms first
Smart Reranker
- AI-powered semantic search reranking
- Visual thumbnail matching using CLIP
- Filters out irrelevant music/entertainment content
- Smart query intent detection (tutorials, reviews, factual content)
- Temporal boost for recent/trending videos
Tag Collector
- Auto-scroll through hundreds of YouTube results
- Match videos by semantic tags
- Exclude unwanted content with negative tags
- User feedback blocklist (thumbs down to never see again)
- Export to playlist or copy all links
The backend uses AI models (SentenceTransformers + CLIP) to understand the meaning of your search and video content, not just keywords. This means:
- Searching "apple" shows cooking videos, not iPhone reviews
- Videos are ranked by actual relevance, not just view count
- Thumbnails are checked to match visual expectations
├── backend/ # Python Flask API with AI models
│ ├── app.py # Main backend server
│ └── requirements.txt
├── extension/ # Chrome extension
│ ├── manifest.json # Extension config
│ ├── background.js # Handles API calls
│ ├── content.js # Modifies YouTube page
│ └── popup.html # Extension settings UI
└── README.md
- Jennifer Corte
- Eishah Shah
- Jeraldine Rodriguez