Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.getbased.health/llms.txt

Use this file to discover all available pages before exploring further.

A knowledge base (also called a Custom Knowledge Source) gives the AI access to documents you have curated — research papers, clinical guides, textbook chapters, personal notes, or any collection of text. Instead of answering from general training knowledge alone, the AI retrieves the most relevant passages from your library before responding and cites them inline. getbased supports two backends: an in-browser engine that runs entirely on your device with no install required, and an external server you self-host for larger corpora or hardware-accelerated retrieval.

Open the knowledge base panel

Click the “Connect a knowledge base” CTA pill on the dashboard, or — once configured — click the 📚 row to manage your libraries. The knowledge base lives in its own modal, not in Settings → AI.

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

Click “Connect a knowledge base” on the dashboard.
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 retrieval runs automatically on every chat message and Focus Card refresh. getbased fetches the top-K passages (default 5, configurable 1–10 in the knowledge base panel) and folds them into the AI’s context before the response streams. 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.