Skip to main content
A knowledge base gives the AI access to documents you have collected: research papers, clinical guides, textbook chapters, personal notes, or any other text. Instead of answering from general training knowledge alone, getbased searches your library first, sends the most relevant passages with your question, and asks the AI to cite them when useful. getbased supports two backends: an in-browser engine that runs on your device with no install required, and an external knowledge server you self-host for larger document libraries or faster retrieval.

Open the knowledge base panel

Open Knowledge Base from the Manage section of the sidebar, or use the knowledge base indicator in chat when a library is active. The knowledge base lives in its own modal, not in Settings.

In-browser vs external server

The in-browser backend runs entirely in your browser using transformers.js and the browser’s private file storage (OPFS). Documents are indexed locally — nothing leaves your device for the knowledge base step.Best for: a few dozen to a few hundred documents. No install, no server, no external dependencies. Works offline after the initial model download.

Create a library

1

Open the knowledge base panel

Open Knowledge Base from the Manage section of the sidebar.
2

Choose In-browser

Select On this device and click Create new library.
3

Pick an embedding model

A dialog shows four models side by side. getbased benchmarks your device on first load and pre-selects the strongest model that runs smoothly on your hardware.
ModelSizeNotes
MiniLM22 MBFast, good general retrieval
BGE-small-en33 MBBetter English retrieval
Multilingual-E540 MB100+ languages
BGE-base-en110 MBHighest English quality
The model is locked at library creation — switching later would require re-indexing all documents, so the choice is made upfront. Libraries created before v1.21.4 continue to use MiniLM with no forced migration.
4

Add documents

Drop your files into the panel. Supported formats: PDF, DOCX (Word), Markdown, plain text, and ZIP archives containing any of the above.
5

Wait for indexing

A progress pill appears in the bottom-right corner. You can close the panel and keep using the app — indexing runs in the background. Click Cancel on the pill to stop at the next excerpt; anything already indexed stays in the library.
Large batches (several hundred files) can take 10+ minutes on the in-browser engine. If that is your workflow, consider the external server backend below.

Switch between libraries

Open the knowledge base panel and click any library name in the list to activate it. Only one library is active at a time. The active library name appears as a badge in the chat header whenever it is being used.

Query rewriting (recall booster)

When an AI provider is configured, the knowledge base can rephrase each question into three variants before searching, then merge the results. This closes the vocabulary gap between how you write your notes and how you ask questions later — a search for “Black Seed Oil” will also find notes titled “Nigella Sativa”.Toggle “Improve recall with query rewriting” in the knowledge base panel (default: on). Each rewrite uses roughly 100 tokens from your configured provider. Repeat questions in the same session use cached rewrites.

Where knowledge base results appear

When a library is active, knowledge base search runs automatically on every chat message and Current Focus refresh. getbased fetches the most relevant passages and sends them with your health context before the AI answers. The AI cites them inline when relevant. A badge in the chat header shows the active library name whenever retrieval is running.

What leaves your browser

Only the question itself is sent to the knowledge source — no lab values, profile details, or other private data. Choose a server you control or trust.

Disable without losing your config

Toggle Enable Knowledge Source off to pause retrieval without deleting your configuration. The chat header badge disappears and subsequent AI calls use only your interpretive lens text.

Caching

getbased caches each query result for 5 minutes (up to 20 entries, scoped per profile). Switching profiles, changing the config, or clicking Clear cache in the panel flushes the cache.