Knowledge bases

Create, configure, organize and retire the collections your questions are answered from.

A knowledge base is a named set of documents indexed together. It is the unit you share, the unit you query, and the unit access is granted on.

Creating one

On the Knowledge Base screen, create a knowledge base inside the department you have selected (this requires a department admin or organization admin). Leaving the department unset creates it in your personal workspace, which nobody else can see. Members cannot create knowledge bases, but can upload to and query the ones they already have access to.

The create form is split into two groups, because the two decide different things and carry different stakes.

Indexing settings, locked at creation

These decide how documents are cut up and turned into vectors. Changing them later would mean re-indexing everything already in the knowledge base, so they are fixed the moment it is created.

SettingWhat it controls
Embedding model
The model that turns each chunk into a vector. The list comes from what this deployment has available; each entry shows its vector dimension and language coverage.
Top-K
How many chunks the index returns per query before reranking, 1 to 50. Left blank, the deployment default applies.
Chunk size
How many characters a passage holds, 100 to 4000. Left blank, the deployment default applies.
Overlap
How many characters consecutive chunks share, 0 to 1000, so a sentence split across a chunk boundary is not lost.
Rerank
Whether retrieved chunks are re-scored for relevance by a dedicated reranker model before being handed to the answer model. More accurate, a little slower. On by default.

These same values are shown, read-only, on the knowledge base's page under RAG config, so anyone with access can see how it is indexed without being able to change it.

Answer generation, editable anytime

This is the model that writes the answer from the chunks retrieved for a question. Unlike indexing, it can be changed at any time from the knowledge base's LLM config panel without touching a single document.

SettingWhat it controls
Provider
Which AI provider generates the answer. Leave unset to use the deployment default provider.
API key
A key for that provider, either typed here or picked from a key your organization has already connected under Integrations. A connected key is preferred, it is stored once and every knowledge base can use it.
Model
The specific model on that provider. The list is fetched live from the provider itself, or from the key you are trying, so it never goes stale.
Temperature
0 to 2. Lower is repeatable and factual, higher is more creative. 0.2 suits document question answering.
Reasoning effort
Off, Low, Medium, High, or Auto (the model decides). Off suits document Q&A, where the model is summarizing context it was handed rather than solving a problem. Some models require reasoning and reject being told not to, Auto is the safe choice for those.
Query cache
Answers a repeated, identical question from cache instead of asking the model again. On by default.
Embedding cache
Reuses an already-computed vector for identical text instead of re-embedding it. On by default.
Contains health information (PHI)
Off by default. Once on, chat refuses to run on the deployment default provider and requires a connected key for this knowledge base, see Health information.
Bringing your own key

A knowledge base using its own connected provider key is billed by that provider directly for generation, rather than through this deployment.

Organizing your knowledge

  • One subject per knowledge base. Retrieval is sharper when a query is not competing against unrelated material.
  • Split by audience, not by author. If two groups should not see the same documents, those documents belong in different knowledge bases.
  • Keep it current. A superseded policy still answers questions confidently. Delete documents that are no longer true.

The knowledge base id and API access

Every knowledge base has an id beginning with hb-. It identifies the knowledge base and, on the query API, authorizes the read at exactly the scope it was minted with, no other credential is required. The id and a retrieval key are shown on the knowledge base's page under API access, masked by default with a Show/Hide toggle, alongside ready-to-run curl commands for retrieval, chat, and the raw streaming chat endpoint used by external integrations. Copying works even while the id is hidden on screen. It can be regenerated at any time from the knowledge base page, typing the knowledge base's name to confirm and optionally recording a reason, both kept in the knowledge base's id history. Documents, shares and every other setting are unaffected, only the id changes.

Shared knowledge bases

A share recipient is issued a scoped id instead of the knowledge base's own, see Sharing across departments. It works the same way everywhere an id is used.

Renaming

Renaming changes only the display name. The id, documents and shares are untouched, so nothing that already uses this knowledge base breaks.

Sharing

A department admin (of the owning department) or an organization admin can share a knowledge base into other departments, at query-only, read-only, or read-and-write access. See Sharing across departments for what each level allows.

Deleting

Deleting a knowledge base removes its documents, its chunks and its index. Answers can no longer be drawn from it and its id stops resolving. This cannot be undone.