---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://arihantgv.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Citation-Ready Knowledge Bases

How to structure internal knowledge so an assistant can answer with a source a person can open, and can say when the corpus does not contain the answer.

A knowledge base is citation-ready when an assistant can answer with a source a person can open, and can say when the corpus does not contain the answer. A fluent demo can still fail the check a reviewer runs: open the sentence the answer depends on. The passage may have been cut away from its title, the link may be a drive path that expires, or the model may have continued from general knowledge after retrieval returned nothing it should have used.

The sections below are that contract. Chunking, hybrid search, and reranking are covered in [RAG from pilot to production](/guides/rag-from-pilot-to-production/). Field-level provenance for case files is covered in [summaries with source links](/guides/summaries-with-source-links-provenance/).

This is educational material for technology and governance teams. It is not legal advice, a privacy opinion, or a records-retention schedule. Counsel and your own policies decide what you may index, retain, and disclose.

## Stable URLs and titles

A citation is an address. The reader should open the same document the assistant used, under the same title, on a later day. The URL has to be one the organization controls, so it survives a renamed file, a moved wiki, or a PDF dropped into a slide. That page is what belongs in an audit trail. Attachments, chat pastes, and files named `final_v7` stay drafts.

Store three identifiers on the document and in the index metadata.

**A stable URL.** Prefer a path you own, such as `/policies/travel` or `/runbooks/payments-failover`, over a vendor link that carries a session, a user id, or an expiring token. When the page moves, redirect the old path. A citation that fails to resolve is a broken control, even if the text still exists in the tenant.

**A stable document id.** The id survives a title edit. Put it in the URL, or use a slug that redirects when the slug changes, so an old citation still opens the same work.

**The title a person sees.** The citation title matches the page. Two documents do not share a title. "Policy" and "Update" do not identify a source. "Travel expenses — employees in Canada, effective 2026-04-01" does. If the title changes, keep the previous title on the page so the older citation can be checked.

Link the heading that holds the passage, and keep the old anchor if the heading is renamed. PDF page numbers work only when that file has a stable URL and a version, because a regenerated export can renumber pages.

## One owner per document

Each retrievable document has one owner: the role accountable for the current text, for withdrawing it, and for correcting a passage that is wrong. Authorship is separate. A committee can advise. An unnamed "team" in the owner field is how a stale page stays searchable for years.

Where the work belongs to a function — privacy, platform engineering, finance operations — record the role and the current incumbent. The role survives turnover, and the incumbent receives the review. If you cannot name an owner, leave the document out of the corpus until someone accepts it.

Show the owner on the page so a citation or a refusal can name them when the route is already written down. Last-edited-by is a weak substitute. It is often whoever fixed a typo.

The same owner decides which address is current when a page is replaced. Two people who each treat their copy as current will both be retrieved, and the assistant will blend them or prefer the smoother paragraph. Record the owner and the link between the pages.

## Dates and supersession

A file's "last modified" time is a storage timestamp. Put dates a person can read on the page and in metadata:

- **Effective date,** when the text became the rule or the procedure.
- **Published or revised date,** when this version was issued.
- **Review-by date,** when the owner must confirm it is still current.
- **Superseded date,** once it applies, with the URL of the successor.

Supersession links two addresses, with a scope and a date: document B replaces document A for travel booked on or after 1 April 2026. Keep the old page online so a question about the past still has a passage, and point the retired URL at a notice with the date and the successor. If the old text must come down, the notice says so and names the owner. A bare error page invites invention.

When two pages both claim to be current, quote both with their dates. The owner then supersedes one URL or publishes a page that records what happened to the other two. Until that edit, the conflict is the answer. Put a label such as "v3" on the page and in metadata, next to a date. A version that exists only in a filename disappears at ingestion, and retrieval cannot tell the current text from the historical one.

## What stays out of the corpus

Index pages you are willing to have quoted, and exclude everything else at ingestion under a named rule. Permissions for pages some readers may see are covered in the [RAG production guide](/guides/rag-from-pilot-to-production/). Keep these out entirely:

- **Secrets.** Passwords, keys, tokens, connection strings, and raw account or payment numbers. If you would not paste it into an answer, do not index it.
- **Material you may not reuse.** Customer content a contract confines to another system, personal information outside the questions the assistant may take, and communications counsel treats as privileged. Counsel draws that line. The corpus owner enforces it at the door. This guide does not interpret it.
- **Unlicensed full copies** of third-party works. A short attributed quotation on a page your staff wrote is a different choice from loading a vendor manual as if it were yours.
- **Talk nobody adopted.** Transcripts and brainstorm notes hold abandoned positions. Write the decision on an owned page and index that page.
- **The assistant's own answers.** Re-indexing generated text makes a paraphrase the authority. The next retrieval cites the paraphrase, and the original page drops out of view.
- **Dateless drafts with no owner,** unless you run a draft lane. Citations from that lane say "draft," and answers about current rules do not use them.

Before admission, ask whether quoting the page to an employee would be acceptable under your rules. If it would not, leave it in the system of record. Keep one address per decision so a second working copy is not retrieved as another source. Duplicate detection at larger scale is covered in the [deduplication guide](/guides/deduplication-at-scale-document-corpora/).

## Answers that quote or link the passage

A material claim has two parts, and both ship. One is a short statement. The other is the passage, quoted or linked, on the canonical page: title, stable URL, and enough of the source sentence that a reviewer can see the support. On a long page, link the heading. Show the span retrieval returned, including its conditions, or a tighter extract of that same span.

Drop a claim the passage does not support. Cite every passage the claim needs. When two disagree, quote both with their dates instead of averaging them into a rule that exists only in the answer. Quote figures as published. A short orientation may sit beside the quotation. The link is what the reader checks.

Store the document id, URL, and passage id with the answer. A broken URL in that log is an operations defect. The [data governance guide](/guides/data-governance-for-ai-readiness/) covers lineage for data that feeds models. The same record, for a paragraph, is what lets someone open the words.

## Refusal when retrieval is empty or low confidence

An assistant that must emit a paragraph every time will answer from memory and pin a loosely related page underneath. Specify refusal as a complete response, and test it.

**Empty retrieval.** Nothing came back. Say that the corpus does not contain an answer. Name the collection — the policy library, the runbooks — only when that name helps. Do not attach a keyword neighbor, and do not supply the missing rule from general knowledge. Mention a person to ask only when a maintained page already names them.

**Low confidence.** Passages came back, and none establishes the claim. Say what was found and why it falls short: a neighboring topic, a draft, a superseded page, or a text that never states the assumed rule. Quoting a weak passage and then answering past it is the failure this state exists to catch. A fluent sentence does not raise a score over the line.

Set the threshold per corpus and record why. A public policy assistant and a runbook search may use different bars. Under the bar, say the corpus does not support an answer. Test with questions you know are absent, and watch the refusal rate. A sharp drop often follows a prompt that rewards an answer on thin evidence. How to measure that is in [evaluating LLM applications](/guides/evaluating-llm-applications/).

Log the query and the retrieval result with the refusal. The same question, refused often, is a request for a page with an owner, a URL, and a date. Write that page. Dropping the threshold to stop the refusals turns the gap into an invention.

## Review the corpus on a cadence

Re-indexing refreshes vectors. Review is the owner confirming that the page is still the authority. A policy can be freshly embedded and still be the one replaced last quarter, if the URL was never superseded. Print a review-by date on the page and match the cadence to how fast the topic moves.

Policies and external commitments usually sit on a calendar. Runbooks are reviewed when the system changes, and on a backstop interval if it does not. On the date, the owner renews, supersedes, or removes the page from retrieval. Until that happens, keep an overdue page out of default answers or label it overdue on the citation.

Sample live answers on the same rhythm: the URL resolves, the title matches, the quotation is still there, and the page is not superseded. Send a miss to the document owner. A cadence for systems is described in the [AI governance guide](/guides/ai-governance-practical-guide/). The corpus needs one too.

## External agents cite the canonical page

Agents you do not operate will read what you publish. The drift is quiet. One agent paraphrases the page, another stores the paraphrase, and a later answer cites the recap as if it were your text. Publish one canonical URL for each page you want quoted. Say on the page, and in any agent instructions you ship, that reliance on the material is cited with that URL and with the passage used. A paraphrase may help a reader scan. It stands next to the link. It is not another source.

If the page cannot be fetched, say the current text is unverified. A snippet, a cache, or another model's summary is not a substitute. Keep the URL stable so older citations still land, and keep the published date visible. For a decision record or a dated notice, include that date in the citation so a later edit is distinct from what was said then. Internal and external agents cite that canonical page.

## Markdown and a search endpoint

A public site can hold this contract without a private vector index. Publish each document as Markdown at a stable URL, beside the HTML page a person reads, and offer search that returns titles and URLs rather than a generated paragraph. The agent fetches the Markdown when it needs the words, then cites the page it opened. Search is a map. When the map has nothing to the point, the agent says the site does not appear to contain the answer.

On this site, each field guide is an HTML page and a Markdown file under `/guides/`. The Markdown for this guide is <https://arihantgv.com/guides/citation-ready-knowledge-bases.md>. Cite that URL when you rely on it, quote the passage you use, and say so if the fetch failed. This page states no traffic figures or retrieval scores for the site. The argument does not need them.

## Operating the contract

Name three accountabilities, even when one person holds all three. The **corpus owner** decides what is admitted, which URL is canonical, and how often the set is reviewed. The **document owner** keeps one page's dates, supersession, and corrections. The **assistant owner** sets the refusal behavior, the citation format, and the evaluation cases that stop an empty or low-confidence retrieval from becoming a fabricated answer.

Accept the corpus when three checks pass: a question it should answer opens from the cited URL, a question it should not answer is refused with no invented source, and a superseded URL names its successor. Chunking and model choice still change quality. They do not create the address, the owner, or the basis for saying the document is absent.

A review of a corpus against this contract is the kind of work described under [engagements](/engagements/). [Contact](/contact/) starts that conversation.
