A Chrome extension for question-answer over websites

Latest Version

Version
0.0.1
Update
February 5, 2025
Size
1.87MiB
Developer
Category
Users
54
Rating
1 ★
Manifest Version
3
Web Store Status
Languages Support
English (United States)
See more
Permissions
Storage
ActiveTab
See more

Site RAG Extension

# Site RAG

[Demo video](https://www.loom.com/share/2ee8496a17774577b2684d6b2981bd1a)

![Screenshot of Site RAG Chrome extension](./public/screenshot.png)

A Chrome extension for asking questions over websites. Site RAG can index a single page of the website, or crawl the entire site. It then generates embeddings for the indexed documents, and stores them in a vector store database.

When a user asks a question, Site RAG will either fetch relevant documents from the current page, or the entire site (customizable).

## Requirements

- [Anthropic API key](https://console.anthropic.com/) - For LLM chat generations
- [OpenAI API key](https://platform.openai.com/) - For embeddings
- [Supabase account](https://supabase.com/) - For vector store

## Setup

First, clone the repository:

```bash
git clone https://github.com/bracesproul/site-rag.git
```

```bash
cd site-rag
```

Then, install the dependencies:

```bash
yarn install
```

and build:

```bash
yarn build
```

### Vector store

To setup the vector store, you need to create a Supabase database. Then, inside the SQL editor, run the following:

```sql
-- Enable the pgvector extension to work with embedding vectors
create extension vector;

-- Create a table to store your documents
create table documents (
id bigserial primary key,
content text, -- corresponds to Document.pageContent
metadata jsonb, -- corresponds to Document.metadata
embedding vector(3072) -- 3072 works for OpenAI embeddings, change if needed
);

-- Create a function to search for documents
create function match_documents (
query_embedding vector(3072),
match_count int DEFAULT null,
filter jsonb DEFAULT '{}'
) returns table (
id bigint,
content text,
metadata jsonb,
embedding jsonb,
similarity float
)
language plpgsql
as $$
#variable_conflict use_column
begin
return query
select
id,
content,
metadata,
(embedding::text)::jsonb as embedding,
1 - (documents.embedding <=> query_embedding) as similarity
from documents
where metadata @> filter
order by documents.embedding <=> query_embedding
limit match_count;
end;
$$;

```

## Usage

To use the extension, go to [chrome://extensions/](chrome://extensions/) and click \"Load unpacked\". From there, select the `dist` directory of this repository.

Once loaded, open the extension and visit the settings page. Here you can add your API keys, and Supabase credentials. You can also customize the indexing settings, such as chunk size and overlap.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Site RAG", "version": "0.0.1", "description": "A Chrome extension for question-answer over websites", "action": { "default_popup": "index.html" }, "permissions": ["storage", "activeTab"]}
Read more

How to download and manually install Site RAG extension for Chrome

Looking for a way to install Site RAG extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install Site RAG extensions manually, this article outlines two simple methods to effortlessly install Site RAG extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download Site RAG extension and manually install through Drag &Drop

If you ever need to manually install a Site RAG extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the Site RAG Extension by clicking the "Download CRX" button on the website.

Look for the Site RAG extension you wish to install. Go to the website and download the Site RAG extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for Site RAG extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the Site RAG extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download Site RAG extension for Chrome and install in Developer Mode

This is another method to install Site RAG extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the Site RAG extension file

Select and download the Site RAG extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the Site RAG extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your Site RAG extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the Site RAG extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install Site RAG extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

Page Assist - A Web UI for Local AI Models Extension · Productivity 54 73 ★ 2.79MiB

icon

open-os LLM Browser Extension Extension · Productivity 54 2 ★ 4.25MiB

icon

ResponseTime Monitor Extension · Developer Tools 54 19 ★ 49.63KiB

icon

AnythingLLM Browser Companion Extension · Productivity 54 4 ★ 81.12KiB

icon

Receptor Extension · Developer Tools 54 0 ★ 1.59MiB

icon

Prompt Genie: Grammarly but for prompts Extension · Productivity 54 42 ★ 822KiB

icon

Anything Copilot - A more powerful sidebar, split-screen, and AI assistant Extension · Productivity 54 54 ★ 2.3MiB

icon

Barra/AI Extension · Productivity 54 9 ★ 717KiB

icon

MarkDownload - Markdown Web Clipper Extension · Productivity 54 146 ★ 403KiB

icon

trudl Extension · Developer Tools 54 2 ★ 9.1MiB

icon

Human Reader, powered by ElevenLabs Extension · Productivity 54 27 ★ 1.03MiB

icon

ChatGPTBox Extension · Productivity 54 104 ★ 1.91MiB

icon

Google Meet Transcripts & AI Summary Extension · Productivity 54 195 ★ 389KiB

icon

supermemory Extension · Productivity 54 36 ★ 876KiB

icon

Page Sidebar | Open any page in side panel Extension · Productivity 54 39 ★ 379KiB

icon

Perplexity AI for Google Extension · Productivity 54 0 ★ 189KiB

icon

Palo Alto library search (v2) Extension · Productivity 54 1 ★ 15.25KiB

icon

Velocity Extension · Social & Communication 54 0 ★ 3.13MiB

icon

Fueler.daily - portfolio inspiration ideas Extension · Productivity 54 7 ★ 6.02MiB

icon

Power Apps Tools Extension · Developer Tools 54 1 ★ 4.61MiB

icon

Bato Extension · Accessibility 54 3 ★ 375KiB

icon

Notion Slides by Wunderpresentation Extension · Productivity 54 31 ★ 21.03KiB

icon

Devgen - Your Code Research Assistant Extension · Developer Tools 54 3 ★ 905KiB

icon

Coframe Extension · Developer Tools 54 7 ★ 968KiB