Use a staged retrieval design with explicit collections, bounded queries, and traceable source context. For internal engineering documentation, document versioning is part of retrieval correctness: an answer that cites a superseded runbook is operationally wrong even when the wording looks perfect.
The design below treats every page revision as a deliberate record, carries its source and revision in the result, and measures the behavior before production. It also keeps the integration surface small enough to replace a vector backend without rewriting the application.
Start with the retrieval contract
Write the user-visible answer contract before picking a database. In this media example, a watcher collects a web page, detects a change, and asks an internal documentation assistant to explain the diff.…