Insights

A knowledge base is not a vector dump

Dumping every document into a vector index looks fast and retrieves the wrong thing. A usable knowledge base chunks by document type, filters on metadata, and treats citations as a contract.

Why “embed the whole drive” fails

It is easy to look productive: slice a shared drive, a wiki and a stack of policy PDFs, embed them, and have a searchable demo in two weeks. Put that index in front of real questions and the pattern is familiar:

  • A question about the current policy retrieves a draft that was superseded
  • A question about a field in a table splits the header from the rows
  • A question about how approval works today hits a flowchart from three years ago

The embedding model is rarely the culprit. The thing being retrieved is not citable knowledge. Vectors measure resemblance. They do not know whether a document is still in force, whether it applies to this product line, or whether this person is allowed to see it.

Name the document type before you chunk

Policies, tickets, product notes, meeting minutes and API docs cannot share one splitting rule.

A policy chunk has to keep the clause number and the effective date. A table should stay a table, or at least a whole section — not a fixed character window. A procedure should keep the step and the role in the same block. The aim is not even-sized chunks. It is that a business owner can look at one chunk and say whether it is right.

Chunks that are too small become fragments the model cannot ground. Chunks that are too large drag in noise and bury the sentence that mattered. Those two failures look different on an evaluation set; they are not both fixed by turning up top-k.

Scans and chat logs can be inventoried without being indexed. Low-quality sources make retrieval noise the default. The inventory should decide, per class, whether to structure the material, down-rank it, or leave it out.

Metadata is the steering wheel

Vector search with no metadata is semantic nearest-neighbour over the company’s entire history. A knowledge base that people will trust needs filters such as:

  • Source system and document type
  • Status: current, draft, withdrawn
  • Product line, team or customer segment
  • Permission level
  • Last updated

Filter first, then rank. Otherwise the nearest neighbour is often the longest obsolete document, not the page that is in force. Hybrid search — keywords plus vectors — is usually more stable for identifiers, product names and ticket numbers. Do not bet the system on similarity alone.

A citation is a contract, not decoration

Retrieval-augmented generation is accepted in operations only when an answer points back to a source the user is allowed to open. Missing citations, wrong citations, or citations to files that have been taken down send people back to asking a colleague.

Stable locators have to be stored at ingest: document id, section, page or clause number — not a bare string of text. Updates and deletes must flow through to the index so you do not serve ghost citations. An evaluation set should score “was the source correct?” as its own measure, not just whether the answer sounded plausible.

Start from a range you can actually pass

Do not open a programme called “the company knowledge base”. Pick one frequent question class, one document type and a clear permission boundary, and measure recall and correct citation. Expand sources only after that bar is met. If you cannot explain why the last retrieval hit what it hit, you do not yet have a knowledge base. You have a pile of vectors.

Related services

2 min read

Why FDE has to sit inside the workflow

Incomplete requirements are often not a reluctant business team. The judgements that matter live in the live operation. FDE has to shadow the workflow and turn tacit rules into something you can build and accept.

Read article

Tell us about the workflow you want to change

We will help you work out where AI is worth applying first, and what the first step should be.