The Knowledge Base lets you index web pages into a Retrieval-Augmented Generation (RAG) store powered by Gemini File Search. Once indexed, you can query your stored documents during agentic workflows or chat with your knowledge base directly — perfect for research, documentation lookup, and building persistent context the agent can reference anytime.
Adding Pages
Index any open browser tab into a knowledge base. Each page's content is extracted, chunked, and embedded for semantic search.
- Click the Database (KB) icon in the chat toolbar
- Create a new knowledge base or select an existing one
- Click "+" on a store to open the Add Pages modal
- Select one or more open tabs and click "Add Pages"
- Pages are indexed and searchable within seconds
Updating Indexed Pages
Re-index a URL at any time to refresh its content. If you add a page that's already in the store, the old version is automatically replaced — no duplicates. Great for pages that change frequently like dashboards or documentation.
Chat with Your Knowledge Base
Switch to Knowledge Base mode using the Agent Mode selector (bottom-left of chat input). When a KB is selected, the mode automatically switches to "KB" — all your questions are answered from your indexed documents with citations and source references.
- Select a knowledge base from the Database dropdown
- The Agent Mode automatically switches to "KB"
- Type your question — the agent searches your indexed documents
- Responses include citations linking back to source pages
Example:
Index 20 API docs → Ask "How do I authenticate with OAuth?"
→ Get a cited answer pulled from your indexed documentationKB as Agent Context
Beyond direct chat, the knowledge base serves as context during full agentic workflows. When a KB is selected and you use Auto (Planner) mode, the agent can reference your indexed documents while planning and executing multi-step tasks — grounding its decisions in your specific documentation.
Managing Stores & Documents
- Click the Database icon to open the KB dropdown
- Click the chevron to expand a store and view its documents
- Use the "×" button on a document to remove it
- Use the trash icon to delete an entire knowledge base
Credits & Pricing
Knowledge base operations always use platform credits — your personal Gemini API key is not supported for KB operations due to permissioning requirements.
| Operation | Cost |
|---|---|
| Indexing pages | ~15 credits per 1M tokens (based on Gemini embedding rate) |
| KB queries | Standard model pricing (Flash is cheapest) |
Tips for Best Results
- Index documentation, articles, and text-rich pages for best results
- Use descriptive store names to organize by project or topic
- Re-index pages after major content updates
- Start with Flash model for queries — upgrade to Pro for complex reasoning over your docs
- Clean, text-heavy pages work best — interactive apps or heavily JS-rendered pages may yield less useful results
Platform Availability
| Capability | Extension | Cloud | API |
|---|---|---|---|
| Create / manage KB stores | ✅ | ✅ | — |
| Index pages into KB | ✅ | ✅ (agent can index during execution) | — |
| Chat with KB (direct query) | ✅ | ✅ | — |
| KB as agent context | ✅ | ✅ | ✅ |
| Sync across devices | ✅ | ✅ | — |