Generative AI & Emerging Technologies for Business
Chapter 5
Enterprise Data, Knowledge and Grounding
Bachelors Program in Business Analytics
Generative AI & Emerging Technologies for Business
•
Bachelor
Enterprise Data, Knowledge and Grounding
Introduction
Generative artificial intelligence is only as reliable as the enterprise information that supports it. A language model may produce fluent text while relying on incomplete, outdated, duplicated, poorly governed, or irrelevant data. In business settings, fluency is not evidence of accuracy. Enterprise AI therefore requires more than model selection: it requires disciplined management of data, metadata, knowledge representations, retrieval systems, privacy controls, and evaluation.
This chapter examines how organizations prepare information for generative AI and how they connect models to trusted enterprise knowledge. It focuses on four closely related technologies: vector databases, semantic search, knowledge graphs, and retrieval-augmented generation (RAG). These technologies do not eliminate the need for governance or human judgment. Rather, they provide mechanisms for selecting, organizing, and supplying evidence to AI systems.
Learning Objectives
By the end of this chapter, you should be able to:
Assess enterprise data quality, metadata, privacy, and AI readiness.
Explain the roles of embeddings, vector databases, and semantic search.
Describe how knowledge graphs represent entities and relationships.
Explain the architecture, benefits, and limitations of RAG.
Design a grounded enterprise AI solution with appropriate controls and evaluation measures.
Identify ethical, regulatory, security, and managerial implications of enterprise grounding.
1. Enterprise Data as an AI Resource
Enterprise data includes structured data, such as customer records and transaction tables; semi-structured data, such as JSON documents and application logs; and unstructured data, such as contracts, manuals, emails, images, and call transcripts. Generative AI may use these sources for question answering, summarization, classification, recommendation, forecasting support, or workflow automation.
However, data is not automatically knowledge. Data becomes useful knowledge when its meaning, origin, quality, context, permissions, and relationships are understood. A sales figure without a definition of “revenue,” a reporting period, currency, or accounting treatment can be misleading. Similarly, a policy document without an effective date may cause an assistant to provide obsolete advice.
A useful distinction is:
Data: recorded observations or representations.
Information: data interpreted within a context.
Knowledge: information connected to concepts, relationships, rules, and experience.
Evidence: information that can support or justify a claim.
Grounding: connecting a model’s response to relevant, authorized, and verifiable information.
Grounding is especially important because generative models predict plausible sequences of tokens. They do not inherently verify whether a statement is supported by current organizational records.
2. Data Quality and Readiness
2.1 Dimensions of data quality
Data quality is multidimensional. Common dimensions include:
Dimension
Central question
Example failure
Accuracy
Does the value represent reality?
Incorrect customer address
Completeness
Are required values present?
Missing product identifiers
Consistency
Do systems agree?
Two prices for the same product
Timeliness
Is the information current enough?
Expired safety procedure
Validity
Does the value conform to rules?
Invalid date or currency code
Uniqueness
Are duplicates controlled?
Same supplier entered three times
Relevance
Is it useful for the intended task?
Irrelevant historical documents
Provenance
Can origin and transformation be traced?
Unknown spreadsheet source
No single dimension is universally most important. A fraud-detection system may prioritize accuracy and timeliness, while a historical research assistant may tolerate old data but require strong provenance.
2.2 Measuring quality
Organizations can define quality indicators for a particular dataset. For example, completeness for a required field can be expressed as:
Completeness = (Number of non-null required values ÷ Total required records) × 100%
The calculation assumes that null or blank values represent missing information and that records are weighted equally. If records have different business importance, a weighted measure may be more appropriate. Quality measures should be interpreted against service-level thresholds rather than treated as universal standards.
For retrieval systems, two information-retrieval measures are particularly useful:
Precision = Relevant retrieved items ÷ Total retrieved items
Recall = Relevant retrieved items ÷ Total relevant items available
Precision measures how much of the retrieved material is useful; recall measures how much of the relevant material was found. In practice, the total number of relevant items may be unknown and must be estimated through labeled test sets or expert review.
2.3 Data readiness assessment
A data-readiness review should ask:
Purpose: What business decision or process will the data support?
Ownership: Who is accountable for definitions, quality, and access?
Structure: Can the data be parsed, indexed, and linked to other sources?
Meaning: Are terms, units, codes, and business rules documented?
Currency: How frequently does the data change, and what latency is acceptable?
Access: Can the intended users access it lawfully and operationally?
Security: What classification, retention, and protection requirements apply?
Evaluation: How will usefulness, accuracy, and risk be measured?
A technically accessible dataset may still be unready if its meaning is ambiguous or its use violates contractual or privacy obligations.
3. Metadata and Knowledge Organization
Metadata is “data about data.” It includes technical, business, operational, and governance information.
Technical metadata describes schemas, data types, file formats, and locations.
Business metadata defines terms such as customer, margin, active account, or incident.
Operational metadata records update frequency, pipeline status, and usage.
Governance metadata identifies owners, classifications, retention periods, and permissions.
Provenance metadata records source systems, transformations, versions, and timestamps.
Metadata improves retrieval because a system can distinguish, for example, a current approved policy from an obsolete draft. It also supports explainability: a response can cite a document title, section, owner, and effective date rather than merely producing unsupported prose.
A business glossary and a data catalog are practical foundations. The glossary standardizes meaning; the catalog helps users discover assets and understand their stewardship. Ontologies go further by formally describing concepts and relationships within a domain. For example, an ontology may specify that a “return authorization” concerns an “order,” is issued by an “agent,” and is governed by a “returns policy.”
4. Privacy, Security, and Responsible Use
Enterprise grounding expands the number of information sources available to AI systems, which increases both usefulness and risk. Sensitive information may include personal identifiers, health data, payment information, employee records, trade secrets, or confidential legal material.
Important controls include:
Data minimization: retrieve and expose only what the task requires.
Purpose limitation: use data for authorized purposes.
Role-based access control: enforce user permissions during retrieval, not only in the front-end application.
Row- and document-level security: prevent unauthorized records from entering prompts or responses.
Pseudonymization or masking: reduce direct exposure of personal identifiers.
Encryption: protect data in transit and at rest.
Retention and deletion controls: remove data when policy or law requires.
Audit logging: record queries, retrieved sources, model versions, and actions.
Human review: require escalation for high-impact decisions.
A major design error is to place all enterprise documents in one unrestricted index and assume that the chatbot interface will provide sufficient protection. Authorization must be evaluated at query time and enforced throughout ingestion, indexing, retrieval, prompting, storage, and output.
Privacy law differs by jurisdiction, but common principles include transparency, lawful processing, data minimization, accuracy, security, and rights of access or deletion. Organizations should consult applicable law and internal policy rather than treating a technical architecture as a substitute for legal analysis.
5. Embeddings and Vector Databases
5.1 Embeddings
An embedding is a numerical vector representing the semantic properties of text, an image, or another object. Items with related meanings may be located near one another in the embedding space. The embedding model determines what kinds of similarity are represented; an embedding is not a complete or objective representation of meaning.
Text is commonly divided into chunks before embedding. Chunk size, overlap, headings, tables, and document structure affect retrieval quality. Very small chunks may lose context; very large chunks may dilute relevance and exceed the model’s context capacity.
5.2 Similarity
A common similarity measure is cosine similarity:
cosine similarity(a,b) = (a · b) ÷ (||a|| ||b||)
Here, a and b are vectors, a · b is their dot product, and ||a|| and ||b|| are their Euclidean lengths. The vectors must be nonzero. Cosine similarity measures orientation rather than magnitude and is often used when vector direction is more meaningful than length.
5.3 Vector databases
A vector database stores embeddings together with identifiers, content references, and metadata. It supports nearest-neighbor search and may combine semantic similarity with filters such as department, region, document status, or access group.
A typical record contains:
Field
Purpose
Vector
Numerical representation used for similarity search
Approximate nearest-neighbor indexes improve speed for large collections by returning highly similar rather than exhaustively comparing every vector. This introduces a trade-off between latency, cost, and recall. Exact search may be preferable for smaller collections or high-stakes applications.
Vector search alone has limitations. Similar-looking text may not answer the question. It can miss exact identifiers, numerical constraints, negation, temporal conditions, or relationships that are not expressed in the embedding. Consequently, enterprise systems often combine vector search with keyword search, metadata filters, reranking, structured queries, and access checks.
6. Semantic Search
Keyword search matches terms, while semantic search seeks conceptual relevance. A user asking “How long may a buyer return an item?” may retrieve a policy stating “products must be sent back within thirty days,” even when the words do not exactly match.
A robust search pipeline may include:
Normalize the query and identify filters.
Apply authorization and tenant boundaries.
Run keyword, vector, or hybrid retrieval.
Apply metadata constraints such as effective date and document status.
Rerank candidate passages using a more precise model.
Remove duplicates and assemble sufficient context.
Pass selected evidence to the generation model.
Cite sources and evaluate the answer.
Search quality depends on indexing quality. OCR errors, poor chunk boundaries, missing titles, and absent effective dates can be more damaging than the choice between two competent search engines.
7. Knowledge Graphs
A knowledge graph represents entities and their relationships. A simple representation is a triple:
subject — relationship — object
For example:
Product A — manufactured by — Supplier B
Entities may have attributes such as an identifier, address, or effective date. Relationships may also have attributes, including confidence, source, and validity period.
Knowledge graphs are valuable when questions depend on connections, hierarchy, rules, or multi-step reasoning. They can help answer:
Which products depend on a supplier affected by a disruption?
Which contracts are governed by a policy revised after a particular date?
Which business units own systems containing a specified data category?
Graphs provide explicit structure and can expose provenance for relationships. They also require substantial modeling effort, entity resolution, maintenance, and agreement about vocabulary. A graph should not be created merely because it is fashionable; it is most useful where relationships are central to the business problem.
Vector retrieval and graphs are complementary. Vectors help locate semantically relevant passages; graphs help navigate explicit entities and relationships. A hybrid system may retrieve policy text from a vector index and verify product ownership through a graph or relational database.
8. Retrieval-Augmented Generation
Retrieval-augmented generation combines information retrieval with text generation. Instead of asking a model to answer from parameters alone, the application retrieves relevant evidence and places it in the model’s context.
Figure: A grounded generation pipeline combining permissions, retrieval, context construction, and cited output.
8.1 RAG workflow
A production RAG workflow normally has two stages.
Offline or indexing stage: collect sources, extract text, preserve structure, classify information, divide content into chunks, generate embeddings, build indexes, and attach metadata.
Online or query stage: authenticate the user, interpret the query, enforce permissions, retrieve and rerank evidence, construct a controlled prompt, generate a response, attach citations, and log the transaction.
The prompt should instruct the model to use supplied evidence, distinguish evidence from inference, state when evidence is insufficient, and avoid fabricating citations. These instructions are useful but not sufficient security controls; retrieval and authorization must be enforced in software.
8.2 RAG evaluation
Evaluation should separate retrieval quality from generation quality. Retrieval tests ask whether the correct source was found. Generation tests ask whether the answer is supported, complete, relevant, clear, and appropriately cautious.
Useful measures include:
Hit rate or recall@k: whether a relevant source appears in the first k results.
Precision@k: the proportion of the first k results judged relevant.
Faithfulness or groundedness: whether claims are supported by retrieved evidence.
Answer correctness: whether the response matches a validated reference answer.
Citation completeness: whether important claims have supporting citations.
Latency and cost: operational performance.
Abstention quality: whether the system declines when evidence is inadequate.
Automated evaluation can scale testing, but expert review remains important for ambiguity, policy interpretation, and high-impact use cases.
9. Designing a Grounded Enterprise Solution
A disciplined design process is as follows.
Step 1: Define the decision and risk
Specify the users, business task, acceptable error rate, consequences of error, and whether the system advises, recommends, or takes action. A customer-service assistant and a credit-underwriting system require different controls.
Step 2: Map sources and authority
Identify authoritative systems, document owners, update schedules, duplicate sources, and conflicting definitions. Establish which source wins when records disagree.
Step 3: Prepare and enrich data
Clean records, correct OCR, preserve headings and tables, remove duplicates, attach dates and version information, and create links to source documents. Do not silently alter meaning during preprocessing.
Step 4: Select the representation
Use structured queries for precise facts, vector retrieval for semantic matching, a graph for relationships, and hybrid designs where the problem requires more than one representation.
Step 5: Integrate security and privacy
Propagate identity and permissions into the retrieval layer. Test for cross-user leakage, prompt injection through documents, sensitive-data exposure, and insecure tool calls.
Step 6: Engineer response behavior
Require citations, define refusal and escalation behavior, constrain actions, and distinguish current policy from historical material. For high-risk workflows, separate recommendation from execution and require approval.
Step 7: Evaluate before deployment
Build representative test questions, including ambiguous, adversarial, outdated, and unanswerable cases. Compare performance across user groups, sources, languages, and document types.
Step 8: Monitor and improve
Track source freshness, retrieval failures, unsupported claims, user feedback, latency, cost, access violations, and changes in model or index behavior. Governance is continuous because documents, regulations, users, and models change.
10. Illustrative Case: A Retail Returns Assistant
Background
A national retailer receives thousands of questions about returns, warranties, delivery exceptions, and regional consumer rules. Its information is distributed across a policy portal, PDF manuals, a product database, a customer-order system, and regional legal guidance.
Problem
The existing chatbot gives confident but inconsistent answers. It sometimes cites an expired policy, treats a warranty as a return right, and exposes information about orders belonging to another customer.
Analysis
A data audit identifies duplicate policy documents, missing effective dates, inconsistent product identifiers, and regional restrictions stored only in metadata. Keyword search fails when customers use informal language. A single unrestricted vector index would create a privacy risk because order records contain personal information.
Approach and solution
The retailer establishes a policy glossary and assigns owners for each policy domain. Approved policies are tagged with region, channel, product category, effective date, expiry date, and access class. Policy text is chunked by logical section rather than arbitrary page length. A vector index supports semantic retrieval, while keyword search handles product codes and order numbers. Regional and date filters are applied before generation.
Order status is retrieved through an authenticated transactional API rather than copied into a general document index. A knowledge graph links products, warranty plans, regions, and policy owners. The assistant is instructed to cite the policy section, distinguish return eligibility from warranty coverage, and hand off complex cases to an employee.
Outcome
Testing shows improved retrieval of informal questions and fewer responses based on expired policies. Privacy tests confirm that one customer cannot retrieve another customer’s order. The system still abstains when policies conflict or when a case requires legal interpretation. Human agents receive the conversation, citations, and retrieved evidence during escalation.
Learning points
The improvement did not result from a larger language model alone. It came from authoritative sources, metadata, hybrid retrieval, transactional separation, access control, explicit relationships, and evaluation against realistic failure cases. Grounding is therefore an organizational and information-architecture problem as much as an AI problem.
11. Challenges and Limitations
Grounded systems remain imperfect. Retrieval can fail because the relevant document is absent, poorly indexed, inaccessible, or expressed in an unfamiliar way. A model may misread a retrieved passage, combine incompatible sources, or make an unsupported inference. Citations can create false confidence if users do not inspect whether they actually support the claim.
Knowledge bases also have temporal problems. A correct answer depends on the date, jurisdiction, customer status, or product version. Systems should preserve historical versions and make temporal assumptions visible.
Costs include embedding computation, storage, indexing, model calls, monitoring, and human evaluation. Frequent document changes may require incremental reindexing. Multilingual and multimodal content adds further complexity.
Prompt injection is another risk. A malicious or compromised document may contain instructions intended to manipulate the model. Retrieved text should be treated as data, not as trusted system instructions. Tool access should be narrowly scoped and independently authorized.
Finally, grounding cannot resolve poor institutional definitions. If departments disagree about the meaning of “active customer,” retrieval may faithfully expose the disagreement rather than produce a legitimate single answer. Governance must address semantic conflicts.
12. Contemporary Developments and Best Practices
Current enterprise architectures increasingly combine relational databases, search engines, vector indexes, knowledge graphs, and application programming interfaces. Reranking models, query rewriting, structured output, document-level citations, and agentic workflows can improve usability, but each additional component introduces failure modes and governance requirements.
Best practices include:
Start with a bounded business use case and measurable risk.
Prefer authoritative, current sources over large undifferentiated collections.
Preserve provenance, version, effective date, and access metadata.
Use hybrid retrieval rather than assuming vectors solve every search problem.
Separate sensitive transactional data from general knowledge indexes.
Enforce permissions before context reaches the model.
Design for abstention, escalation, and correction.
Evaluate retrieval, answer support, privacy, fairness, latency, and cost separately.
Log evidence and system versions for auditability.
Reassess the system whenever sources, policies, models, or regulations change.
Chapter Summary
Enterprise generative AI depends on well-governed data and explicit knowledge structures. Data quality includes accuracy, completeness, consistency, timeliness, validity, uniqueness, relevance, and provenance. Metadata supplies the definitions, ownership, version, permissions, and lineage needed for meaningful retrieval. Privacy and security must be enforced throughout ingestion and retrieval, not merely at the user interface.
Embeddings represent semantic patterns as vectors, and vector databases support similarity search. Semantic search improves retrieval when user language differs from source wording, while hybrid search combines semantic, lexical, structured, and metadata-based methods. Knowledge graphs represent entities and relationships explicitly and are useful for multi-step or relationship-centered questions.
Retrieval-augmented generation connects a language model to selected enterprise evidence. A reliable RAG system requires authoritative sources, careful chunking, metadata, authorization, retrieval evaluation, citations, abstention, monitoring, and human oversight. The central design principle is that grounded AI is socio-technical: model capability, information architecture, governance, security, and organizational accountability must work together.
Key Terms
Data quality: The degree to which data is fit for an intended purpose.
Metadata: Data describing the meaning, structure, origin, use, or governance of other data.
Provenance: The history and origin of a data item or transformation.
Data catalog: An organized inventory describing available data assets.
Business glossary: A governed collection of standard business definitions.
Embedding: A numerical vector representing semantic or other properties of an object.
Vector database: A system that stores vectors and supports similarity search.
Cosine similarity: A measure of the angle-based similarity between two nonzero vectors.
Semantic search: Search based on meaning rather than exact word matching alone.
Hybrid search: Retrieval combining methods such as keyword, vector, structured, and metadata search.
Knowledge graph: A graph of entities, attributes, and relationships, often with provenance.
Ontology: A formal description of concepts and relationships in a domain.
Grounding: Connecting AI output to relevant, authorized, verifiable information.
Retrieval-augmented generation: Generation that uses retrieved external evidence as model context.
Reranking: Reordering retrieved candidates using a more precise relevance model.
Chunking: Dividing source content into retrievable units.
Faithfulness: The extent to which a response is supported by supplied evidence.
Prompt injection: Malicious or unintended instructions designed to manipulate an AI system through its inputs.
Review Questions
Short Answer Questions
Why is metadata important for enterprise AI retrieval?
Distinguish precision from recall in information retrieval.
What is an embedding?
Give two situations in which a knowledge graph is useful.
Why should permissions be enforced at the retrieval layer?
Long Answer Questions
Explain the major dimensions of data quality and discuss how their importance varies by business use case.
Compare vector databases, keyword search, structured databases, and knowledge graphs.
Describe the offline and online stages of a retrieval-augmented generation system.
Discuss privacy, security, and governance risks in enterprise grounding.
Explain why evaluation of a RAG system should separate retrieval quality from generation quality.
Analytical / Application Questions
Design a grounded assistant for a university’s student-services department. Specify sources, metadata, retrieval methods, privacy controls, escalation rules, and evaluation measures.
An organization has accurate documents but many obsolete versions and no effective dates. Analyze the likely retrieval and governance failures and propose a remediation plan.
A procurement assistant must answer questions involving supplier relationships, current contracts, and policy text. Decide which functions should use a relational database, vector search, and a knowledge graph, and justify your architecture.
Multiple Choice Questions with Answers
Question 1
Which metadata attribute is most directly useful for preventing retrieval of an obsolete policy?
A. Font size
B. Effective date and version
C. Document page count
D. File color
Correct Answer: B. Effective date and version
Question 2
A retrieval system returns 8 documents, of which 6 are relevant. What is its precision?
A. 25%
B. 60%
C. 75%
D. 80%
Correct Answer: C. 75%
Question 3
What is the principal purpose of an embedding in semantic search?
A. To encrypt a document
B. To represent semantic properties numerically
C. To assign legal ownership
D. To guarantee factual accuracy
Correct Answer: B. To represent semantic properties numerically
Question 4
Which representation is most appropriate for explicitly modeling that Supplier B manufactures Product A?
A. Knowledge graph
B. Image file
C. Password vault
D. Random text chunk
Correct Answer: A. Knowledge graph
Question 5
What distinguishes retrieval-augmented generation from generation using model parameters alone?
A. It always uses a larger model
B. It supplies retrieved external evidence as context
C. It eliminates the need for data governance
D. It guarantees that every answer is correct
Correct Answer: B. It supplies retrieved external evidence as context
Question 6
Which control best reduces the risk that one customer sees another customer’s order?
A. Increasing chunk size
B. Removing document titles
C. Applying authorization during retrieval
D. Using a more fluent language model
Correct Answer: C. Applying authorization during retrieval
Question 7
Cosine similarity between two nonzero vectors primarily compares their:
A. File sizes
B. Storage locations
C. Angular orientation
D. Creation dates
Correct Answer: C. Angular orientation
Question 8
Why is hybrid search often preferred in enterprise systems?
A. It prevents all hallucinations
B. It combines complementary lexical, semantic, and structured signals
C. It removes the need for metadata
D. It requires no evaluation
Correct Answer: B. It combines complementary lexical, semantic, and structured signals
Question 9
Which response behavior is most appropriate when retrieved evidence is insufficient?
A. Invent a likely policy
B. Answer with maximum confidence
C. Abstain or escalate with an explanation
D. Ignore access controls
Correct Answer: C. Abstain or escalate with an explanation
Question 10
Which evaluation measure asks whether an important claim is supported by retrieved evidence?
A. Faithfulness or groundedness
B. File compression ratio
C. Database normalization
D. Embedding dimension alone
Correct Answer: A. Faithfulness or groundedness
Generative AI & Emerging Technologies for Business
Chapter 5
of 14