Now taking new projects

All resources

Checklist

Cited knowledge base checklist.

For owners and operations leads who want a knowledge base over their own documents that can be checked, not one that makes things up.

This checklist follows a knowledge base I built for myself and use every day. You ask a question in plain words and get back the matching passages, each with its passage id and source title. When nothing matches well enough, the answer says the source does not cover it.

It covers the retrieval pipeline and the rule for answers. It does not cover a chat interface, reranking or formal evaluation sets. In my build, the quality of retrieval was tuned by use, not by a labeled benchmark.

A few terms used below:

  • Passage is one piece of a source document, small enough to be searched and quoted.
  • Embedding is a list of numbers that represents the meaning of a passage or a question, so similar ones can be found.
  • Vector store is the database that holds the embeddings and finds the closest passages.
  • Relevance bar is the lowest score a passage can have and still be used.

1. Start from the promise

  • Write the promise in one line: every answer can be checked against its source, and an honest “not covered” is a valid answer.
  • Decide which features the knowledge base will not have, such as a chat interface, a reranking step or a formal benchmark, and say so plainly wherever you describe it.

2. Clean the material

  • Remove repeated text before anything else. Automatic captions, for example, repeat lines in a sliding window.
  • Run automated checks on the cleaning, including a check that files that were already clean are left unchanged.

3. Split and store

  • Split the text into passages at sentence boundaries.
  • Keep the original passage text for display, and keep the source title with every passage.
  • Give each passage a stable id built from its source and its position, so running the load again does not create duplicates.
  • Store the passages and their embeddings in a vector store.

4. Search with a relevance bar

  • Turn the question into an embedding, search the store and score each passage.
  • Drop passages below the relevance bar in code, before any model writes an answer.
  • When nothing passes, return nothing and let the answer say the source does not cover the question.
  • Set the bar by testing. Compare the scores of questions the source covers with questions it does not, and choose a bar between them.

5. Write the answer from the passages only

  • Have the model write the answer only from the passages that passed.
  • Attach the passage id and the source title to every point.
  • Do not let the model present a paraphrase as a quotation.

6. Keep it current

  • Add new material by its source address, so the same source is not loaded twice.
  • Embed only what is new, and skip passages that are already stored.

Tell me what you want to automate.

Describe your setup, where work gets stuck, and what you want to change.

I reply in writing, with a recorded walkthrough when it helps.