A Chrome extension for grounding AI responses in your own knowledge base.
This extension lets you ask questions while browsing any website. Your question is answered using your own knowledge base, not generic AI training data.
- Select text on any page to use as context
- Ask follow-up questions in the chat
- Get answers grounded in your actual content
- See source links for verification
┌─────────────────────────────────────────────────────────┐
│ Your Browser │
│ │
│ ┌──────────────────┐ ┌──────────────────────┐ │
│ │ Chrome Extension │ │ Any Website │ │
│ │ (this repo) │ │ (competitor site) │ │
│ └──────────┬─────────┘ └──────────────────────┘ │
│ │ │
│ │ Sends question │
│ ▼ │
│ ┌──────────────────────────────────────────────────┐ │
│ │ YOUR SERVER (api.yourdomain.com) │ │
│ │ │ │
│ │ - Receives question │ │
│ │ - Fetches your knowledge-base.json │ │
│ │ - Calls your AI provider │ │
│ │ - Returns grounded response │ │
│ └──────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────┘
Edit popup.js and change the API endpoint:
// Replace with your own backend
const API_ENDPOINT = "https://your-api.com/search";Your backend should:
- Accept POST requests with
{ query: string, context?: string } - Return
{ answer: string, sources: string[] } - Use your own knowledge base and AI provider
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select this extension folder
- Click the extension icon in your toolbar
- Type a question
- Navigate to any page, select text
- Go back to the extension and ask a follow-up question
The extension itself is provider-agnostic. Your backend handles the AI integration. Swap in Claude, GPT-4, or any other model.
To customize the branding:
- Footer text: Edit
popup.htmland change the text in<span id="powered-by"> - Header: Edit the
<h1>and.subtitleinpopup.html - Colors: Edit CSS variables in
popup.cssunder:root
Edit popup.css to match your brand. The default styling is neutral and clean.
- Keyboard shortcuts
- History
- Multiple knowledge bases
- Team collaboration
# Make changes to source files
# Reload the extension in chrome://extensions/The extension requires PNG icons in the icons/ directory:
icon16.png- 16x16 pixelsicon48.png- 48x48 pixelsicon128.png- 128x128 pixels
Create your own or use a tool like Favicon.io to generate them.
This extension works with any knowledge base that follows the Knowledge Base JSON Spec.
MIT