RAGsense is a RAG powered AI search engine that allows you to ask questions about the content of any web page you are currently visiting. It combines a Chrome Extension with a Python backend powered by Retrieval-Augmented Generation (RAG). Built with 100 % open-source stack: LangChain, RAG, Hugging-Face embeddings + small LLM, FAISS vector store, and a tiny *Manifest-V3 Chrome extension
- Local Intelligence: Uses
google/flan-t5-smallandsentence-transformersrunning entirely on your CPU. No data leaves your machine (unless you deploy the backend). - Instant Answers: Ask questions about the current tab's content and get immediate, context-aware answers.
- RAG Pipeline: Built with LangChain and FAISS for efficient document retrieval and answering.
- Chrome Extension: Seamless integration with your browsing experience.
- Python 3.10 or higher
- Google Chrome (or Chromium-based browser)
The backend handles the scraping, embedding, and question-answering.
-
Clone the repository:
git clone <repository-url> cd RAGsense
-
Create and activate a virtual environment:
# Windows python -m venv venv .\venv\Scripts\activate # macOS/Linux python3 -m venv venv source venv/bin/activate
-
Install dependencies:
pip install -r backend/requirements.txt
-
Start the server:
python backend/main.py
The server will start at
http://0.0.0.0:8000.
The extension allows you to interact with the backend from your browser.
-
Configure the Backend URL:
- Open
chrome-extension/popup.js. - Find the line:
const BACKEND = "https://ai-search-engine-abc123-4567.app.github.dev";
- Change it to your local server URL (or deployed URL):
const BACKEND = "http://localhost:8000";
- Open
-
Load the Extension:
- Open Chrome and navigate to
chrome://extensions. - Enable Developer mode (toggle in the top right).
- Click Load unpacked.
- Select the
chrome-extensionfolder from this project.
- Open Chrome and navigate to
- Ensure the backend server is running (
python backend/main.py). - Open any web page in Chrome (e.g., a news article or documentation).
- Click the RAGsense extension icon in the toolbar.
- Type your question in the input box (e.g., "What is the main summary of this article?").
- Click Ask.
- The AI will read the page content and provide an answer based on the text.
RAGsense/
├── backend/
│ ├── main.py # FastAPI application entry point
│ ├── rag_chain.py # RAG logic (Embeddings, LLM, Vector Store)
│ └── requirements.txt # Python dependencies
└── chrome-extension/
├── manifest.json # Extension configuration
├── popup.html # Extension UI
├── popup.js # Extension logic
├── content.js # Content script
└── icons/ # Extension icons
Contributions are welcome! Please feel free to submit a Pull Request.
AUTHOR: Phravins
RAGsense - Eclipse Public License - v 2.0 licenced
