Enterprise RAG: What to Know Before Building on Company Data
Enterprise retrieval-augmented generation (RAG) connects a language model to selected company information so it can retrieve relevant material and use it to answer questions. Before building one, establish which data it may access, how current and trustworthy that data is, how answers will be evaluated, and how the system will protect confidential information.
What enterprise RAG is—and what it is not
RAG combines information retrieval with text generation. Instead of relying only on information learned during model training, a RAG application searches a collection of documents when a user asks a question, supplies selected passages to a model, and asks it to produce a response. The passages may also be shown as citations or links.
For example, an employee asking about a travel reimbursement rule might receive an answer grounded in the current policy document, with a link to the relevant section. This can make company knowledge easier to use without retraining a model whenever a policy changes. RAG does not guarantee that the answer is correct: retrieval can miss the right document, the source itself can be outdated, or the model can misinterpret the retrieved text.
RAG is also not the same as giving a model unrestricted access to a company’s systems. A well-designed application searches only approved sources and applies authorization rules before returning content. It should not treat “the model can see it” as a substitute for ordinary access control.
How the system works
Most RAG systems have two broad stages: preparing information for search and answering a question. The details vary, but a typical flow is:
- Collect and prepare sources. Connect to approved repositories, extract text and useful metadata, and divide documents into searchable passages. A passage might retain its document title, section, owner, and last-updated date.
- Build a search index. The system can index terms for keyword search, create numerical representations called embeddings for semantic search, or use a combination. An index is a way to find relevant content; it is not the authoritative source itself.
- Retrieve and rank passages. When a question arrives, the application searches for candidate passages and selects those most likely to help. It may filter by department, document status, or the user’s permissions.
- Generate a response. The model receives the question and selected content, then drafts an answer. The application can require citations, decline to answer when evidence is insufficient, or route the question to a person.
- Evaluate and improve. Teams review retrieval quality, answer accuracy, source attribution, latency, and access behavior using representative questions and real-world feedback.
This flow depends on data pipelines as much as on the model. If a source changes but its indexed copy does not, the application may confidently return an obsolete answer.
Decide whether RAG fits the use case
RAG is useful when people need answers drawn from a changing body of documents and can benefit from seeing the supporting sources. Typical candidates include internal policy search, product documentation, support knowledge bases, and technical procedures. It is less suitable when a task requires exact transactional updates, complex calculations, or authoritative decisions that should be made by a deterministic system or qualified person.
Clarify the job before choosing technology. Specify who will use it, which questions it should answer, what a useful answer looks like, and what it must do when evidence is missing. A narrow pilot—such as finding answers in a maintained set of IT procedures—is easier to evaluate than a broad promise to answer anything about the company.
RAG is often compared with fine-tuning, but they solve different problems. Retrieval supplies changing or source-specific information at answer time. Fine-tuning adjusts a model’s behavior or style using examples; it is not, by itself, a dependable way to keep a model’s knowledge synchronized with documents. Some applications may use both, but neither removes the need for evaluation and access controls.
Data quality, permissions, and security
Start with a source inventory rather than indexing every available file share. Identify owners, intended audiences, update frequency, document status, and any sensitive categories. Duplicates, expired policies, scanned files with poor text extraction, and documents without clear ownership can all undermine results.
Authorization needs particular care. A search system should respect the permissions that apply to the underlying material, including changes and revocations. Filtering only after retrieval or generation can expose snippets to a user who is not allowed to see them. Test with accounts that have different access levels, and check that citations do not reveal restricted titles or content.
- Limit indexed sources and user access to what the use case requires.
- Define how documents are refreshed, removed, and re-indexed when permissions change.
- Review how prompts, retrieved text, and generated responses are logged, retained, and handled by service providers.
- Test against malicious or misleading instructions embedded in documents; retrieved text should be treated as untrusted content, not as authority to change system rules.
- Provide a clear path to report a bad answer and assign responsibility for fixing its source or retrieval behavior.
These measures do not make a system risk-free. They make its boundaries and failure handling explicit, which is essential when company data is involved.
Common failure modes and evaluation
A fluent response can hide a weak search result. If the correct passage was never retrieved, asking the model to write more carefully will not solve the underlying problem. Conversely, retrieving many loosely related passages can confuse the model or crowd out the key evidence.
Build an evaluation set from realistic questions, including ambiguous wording, questions with no answer in the approved sources, and cases involving different permissions. Have knowledgeable reviewers identify the expected source and acceptable answer. Measure retrieval separately from generation: did the system find the right evidence, and did the final response represent it accurately?
Other recurring problems include outdated indexes, broken document links, poor handling of tables, and citations that point to a whole file rather than the supporting passage. Monitor these after launch as well as during development. Changes to a model, prompt, source collection, chunking strategy, or search configuration can alter behavior, so retest consequential workflows after significant changes.
Architecture, operating effort, and alternatives
There is no single architecture that fits every organization. A team might use managed search and model services, assemble components in its own environment, or extend an existing enterprise search platform. Compare options based on data residency and handling requirements, identity integration, source connectors, update behavior, observability, customization, and the effort required to operate them. The choice should follow the use case and governance needs, not a benchmark in isolation.
Budget for more than model usage. Ongoing work can include connector maintenance, document cleanup, indexing and storage, access reviews, evaluation, monitoring, and support. Costs depend on the amount and frequency of data processed, query volume, model and search choices, and operational requirements; estimate them with a representative pilot rather than assuming a single per-answer figure captures the whole system.
Alternatives may be simpler. Improve document organization or conventional enterprise search if people mainly need links to files. Use a database query or application workflow when answers depend on structured, current records. Keep a human review step for high-impact decisions. RAG can complement these tools, but it should not replace a system of record or a required approval process.
Frequently Asked Questions
Does enterprise RAG eliminate hallucinations?
No. It can ground responses in retrieved sources, but retrieval errors, incomplete documents, and model misinterpretation remain possible. Citations and an option to abstain help users check answers; they are not proof of correctness.
Does RAG require fine-tuning?
No. A basic RAG system can use a general-purpose model and provide relevant material in its prompt. Fine-tuning may help with a specialized response style or task behavior, but it does not replace current, permission-aware retrieval.
How often should company data be refreshed?
It depends on how often the source changes and how harmful a stale answer could be. Set refresh and deletion behavior for each source, then verify that updates and permission revocations reach the searchable index within the required operational window.
Can RAG answer questions about spreadsheets and tables?
Sometimes, but results depend on how the data is extracted and represented. For calculations or frequently changing structured records, querying a database or spreadsheet through a controlled tool may be more reliable than searching text passages.
What should a first enterprise RAG pilot include?
Choose one bounded use case, a small set of approved sources, representative questions, permission tests, and reviewers who can judge answers. Set success criteria for source retrieval, answer quality, citations, response time, and safe handling of questions the sources cannot answer.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.