Engineering & Systems · Enterprise AI Architecture
The Architecture of Enterprise Knowledge Systems
An AI assistant connected to company documents inherits every permission mistake, stale page, and planted instruction in them. Governing it means governing the supply chain that feeds it.
Executive summary
Retrieval-augmented generation (RAG) is now the default way to connect language models to enterprise knowledge. Public evidence shows three ways it goes wrong: it answers from content the user should not see, it answers from content that is wrong or out of date, and it follows instructions hidden in retrieved content. Leading legal RAG tools hallucinated more than 17 percent of the time in a peer-reviewed test, and researchers showed a production assistant could be made to leak data through a single email. This article proposes the Knowledge Supply Chain, a DAVID framework assigning an owner, control, and metric to each of five stages from source to answer, plus a grid matching architecture to a corpus's sensitivity and volatility.
The problem: retrieval moves governance into the pipeline
RAG was introduced as a way to give models access to an external, updatable index and to provide provenance for their outputs (Lewis et al., 2020). Those two properties, updatability and provenance, are exactly what make it attractive to enterprises. They also mean the quality and security of the answer now depend on a data pipeline most organizations did not design for this purpose. In a 2024 Gartner survey, 63 percent of data management leaders said their organizations did not have, or were unsure they had, the right data management practices for AI, and Gartner predicts that through 2026 organizations will abandon 60 percent of AI projects unsupported by AI-ready data (Gartner, 2025). That is a forecast from a vendor of advisory services, and the press release reports two different sample sizes, but it matches what engineers report.
What the evidence shows
External findings. DAVID interpretation is labeled separately below.
Retrieval does not eliminate wrong answers. The first preregistered evaluation of commercial legal research tools found that, although retrieval reduced hallucinations relative to a general-purpose chatbot, the tools from LexisNexis and Thomson Reuters each hallucinated more than 17 percent of the time, despite vendor claims that RAG eliminated or avoided hallucinations (Magesh et al., Journal of Empirical Legal Studies, 2025). An experience report from three RAG deployments in research, education, and biomedicine identified seven failure points, including missing content, relevant documents ranked too low to be used, and answers that extract the wrong detail, and concluded that validation of a RAG system "is only feasible during operation" (Barnett et al., 2024). Long context windows are not a full substitute: models perform best when relevant information sits at the start or end of the input and degrade significantly when it sits in the middle (Liu et al., 2023).
Permissions are inherited, including bad ones. Microsoft states that Microsoft 365 Copilot "only surfaces organizational data to which individual users have at least view permissions," and directs customers to use existing permission models to ensure the right people have access (Microsoft Learn, accessed 2026). The implication is that any content overshared in the source system becomes discoverable through the assistant. Microsoft's own tooling acknowledges the problem: SharePoint data access governance reports exist to find "potentially overshared or sensitive content" (Microsoft Learn), and Restricted Content Discovery lets administrators hide sites from Copilot while permissions are reviewed, described as a temporary control (Microsoft Learn).
Indexes create new attack surfaces. OWASP's 2025 list of LLM application risks includes vector and embedding weaknesses: misaligned access controls, cross-tenant context leakage in shared vector stores, conflicting sources, and embedding inversion. It recommends permission-aware vector stores with strict logical partitioning (OWASP, 2025). Embedding inversion is not theoretical: researchers recovered 92 percent of 32-token inputs exactly from their embeddings and recovered full names from clinical notes (Morris et al., 2023). On integrity, PoisonedRAG showed that injecting five crafted texts per target question into a knowledge base of millions of texts achieved a 90 percent attack success rate, and that the defenses tested were insufficient (Zou et al., USENIX Security, 2025).
Retrieved content can carry instructions. EchoLeak (CVE-2025-32711) was a zero-click vulnerability in Microsoft 365 Copilot in which a single crafted email, once retrieved into the assistant's context, could cause data to be exfiltrated without user interaction, by chaining bypasses of a prompt-injection classifier, link redaction, and content security policy (Reddy and Gujral, 2025; Microsoft Security Response Center, 2025). Microsoft rated it critical, reported no known exploitation, and fully mitigated it on the service side. The lesson for architects is that every retrieved document is untrusted input.
Original framework: the Knowledge Supply Chain
This is a DAVID-proposed framework. It has not been externally validated.
DAVID treats an enterprise knowledge system as a supply chain with five stages. Each stage needs a named owner, a control, and a metric. Most failures in the evidence above trace to a stage with no owner.
| Stage | Question it answers | Owner | Control | Metric |
|---|---|---|---|---|
| 1. Source | Is this content authoritative and current? | Business content owner | Designated system of record; review dates; retirement of superseded versions | Share of indexed documents past review date |
| 2. Ingest | Should this content enter the index at all? | Data governance | Sensitivity classification at ingest; exclusion of overshared or unlabeled content; provenance and version captured | Share of ingested items with owner, label, and version |
| 3. Index | Is the index ever more permissive than the source? | Platform engineering | Access-control lists stored with every chunk; partitioned stores for distinct access domains; deletion and permission changes propagated | Permission-parity test pass rate; propagation lag |
| 4. Retrieve | Is the user entitled to what was retrieved, and is it relevant? | Application engineering | Query-time authorization against the source; retrieval evaluation on a maintained question set | Recall on the golden set; unauthorized-retrieval rate (target zero) |
| 5. Answer | Is the answer grounded, cited, and safe to act on? | Product owner with risk | Citations to retrieved passages; abstention when evidence is weak; retrieved text treated as data, never as instructions; output filtering of links and images | Citation accuracy on sampled answers; abstention rate; escalations |
The central engineering rule is permission parity: the index must never grant broader access than the system of record. It should be tested like a security control, with synthetic users at each access level querying for documents they should and should not reach, and it should be retested whenever source permissions change.
Matching architecture to the corpus
DAVID decision grid; not externally validated.
Not every corpus needs the same design. Two properties drive the choice: how sensitive the content is, and how often it or its permissions change.
| Low volatility | High volatility | |
|---|---|---|
| Low sensitivity (policies, product documentation) | Shared index, scheduled refresh, show document dates | Shared index with event-driven re-indexing and a freshness target |
| High sensitivity (HR, legal, deal files, customer records) | Partitioned indexes per access domain, ACLs on every chunk, query-time authorization | Avoid copying into a vector store; query the source system live (federated retrieval) so its permissions apply at request time |
The upper-left cell is where most pilots start and where most look successful. The lower-right cell is where an index copied from the source becomes a liability, because permission changes and deletions must propagate before the next query. For that content, the latency of querying the source is usually cheaper than the risk of a stale copy.
Implications for executives
- Fix oversharing before connecting an assistant, not after. An assistant that respects permissions will still surface everything that was shared too broadly. A permissions review is part of the deployment budget.
- Name an owner for every stage. Content owners, data governance, platform, application, and risk each own one stage. If no one owns source quality, the assistant will cite superseded policies with confidence.
- Require evidence of retrieval quality, not demos. Ask for recall on a maintained question set, citation accuracy on sampled answers, and the permission-parity test results. The legal tools study shows vendor claims can overstate accuracy.
- Treat retrieved content as untrusted. Any system that reads email, tickets, or external documents can be steered by them. Limit what the assistant can do with what it reads, especially sending data out.
- Plan for operation, not launch. The RAG failure literature is consistent that problems surface in use. Budget for monitoring, evaluation refresh, and content upkeep as recurring costs.
Counterarguments and limitations
Strict partitioning and live federated retrieval add latency and engineering cost, and can make answers less complete; Microsoft itself warns that excessive restriction reduces relevance (Microsoft Learn). For small, stable, low-sensitivity corpora, placing documents directly in a long context window may be simpler than building an index, though position effects remain. Some evidence cited here is from attack research under controlled conditions; real-world exploitation rates are unknown. The legal study tested specific tool versions in 2024, and vendors have since updated their products. The framework's stages overlap in practice, and smaller organizations may combine owners.
Conclusion
Enterprise knowledge systems fail in predictable places: at the source, in permissions, in the index, at retrieval, and in what the model does with what it reads. The public evidence does not support the claim that retrieval makes AI answers reliable by itself. It supports treating the path from document to answer as a governed supply chain, with owners, controls, and metrics at each stage, and choosing architecture by the sensitivity and volatility of the content.
Methodology
Method. Research used live web sources on November 22, 2026. Every cited page was fetched that day, and figures were checked against abstracts, official documentation, or full text. DAVID AI conducted no tests, surveys, or client measurements for this article. External findings are reported as published; the Knowledge Supply Chain, the decision grid, and the implications are DAVID's analysis.
Limitations. Several sources are preprints or vendor documentation. Attack success rates come from research settings. Gartner figures are forecasts and survey results from an advisory firm.
Disclosure. DAVID AI designs and builds production AI systems and has commercial partnerships with several AI technology providers, including some whose products are referenced in this article.
Sources
- Lewis, P., et al., "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks," NeurIPS 2020 (arXiv 2005.11401). Link
- Gartner, "Lack of AI-Ready Data Puts AI Projects at Risk," February 26, 2025. Link
- Magesh, V., Surani, F., Dahl, M., Suzgun, M., Manning, C. D., and Ho, D. E., "Hallucination-Free? Assessing the Reliability of Leading AI Legal Research Tools," Journal of Empirical Legal Studies 22, 216 (2025). Link
- Barnett, S., et al., "Seven Failure Points When Engineering a Retrieval Augmented Generation System," CAIN 2024 (arXiv 2401.05856, January 2024). Link
- Liu, N. F., et al., "Lost in the Middle: How Language Models Use Long Contexts," arXiv 2307.03172, 2023; published in Transactions of the ACL, 2024. Link
- Microsoft Learn, "Data, Privacy, and Security for Microsoft Copilot," accessed November 22, 2026. Link
- Microsoft Learn, "Data access governance reports for SharePoint sites," accessed November 22, 2026. Link
- Microsoft Learn, "Restrict discovery of SharePoint sites and content," accessed November 22, 2026. Link
- OWASP GenAI Security Project, "LLM08:2025 Vector and Embedding Weaknesses," 2025. Link
- Morris, J. X., et al., "Text Embeddings Reveal (Almost) As Much As Text," EMNLP 2023 (arXiv 2310.06816). Link
- Zou, W., Geng, R., Wang, B., and Jia, J., "PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models," USENIX Security 2025. Link
- Reddy, P., and Gujral, A. S., "EchoLeak: The First Real-World Zero-Click Prompt Injection Exploit in a Production LLM System," arXiv 2509.10540, September 2025. Link
- Microsoft Security Response Center, "CVE-2025-32711: M365 Copilot Information Disclosure Vulnerability," June 2025. Link