Data Quality Assessment and Enhancement Framework for GenAI Applications
quantumblack · Healthcare · 2025 · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)
Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.
Problem
Domain: Unstructured data quality for GenAI and RAG
QuantumBlack needed to assess and remediate unstructured-data problems that cause generative AI and RAG applications to hallucinate, retrieve poorly, leak sensitive information, or waste storage and compute.
Constraints:
- Unstructured data comes in formats such as PDFs, images, videos, PowerPoint, and Excel.
- Unstructured data quality has less-established frameworks than structured data quality.
- Documents may lack metadata, be duplicated, outdated, irrelevant, multilingual, or contain sensitive information.
- Downstream hallucination and leakage can be hard to fix after ingestion.
- Human review is needed for flagged document-quality issues.
Architecture
QuantumBlack's AI4DQ Unstructured toolkit scans document corpora, scores unstructured data quality, clusters and labels documents with custom embeddings and metadata, identifies duplicates/versioned documents, presents flagged issues to humans for review, and recommends correction strategies so RAG and GenAI systems use recent, relevant, fit-for-purpose data.
Diagram confidence: explicit (topology described by the source).
flowchart LR input-corpus["Input corpus"] --> quality-scoring-engine["Quality scoring engine"] input-corpus --> clustering-and-labeling-workflow["Clustering and labeling workflow"] input-corpus --> deduplication-workflow["Deduplication workflow"] quality-scoring-engine --> human-review-app["Human review app"] clustering-and-labeling-workflow --> human-review-app deduplication-workflow --> human-review-app clustering-and-labeling-workflow --> metadata-cache["Metadata cache"] metadata-cache --> genai-application["GenAI application"]
Components
| Component | Role | Interacts with |
|---|---|---|
Input corpus |
Collection of unstructured documents in mixed formats. | Quality scoring engine, Clustering and labeling workflow, Deduplication workflow |
Quality scoring engine |
Generates individual data quality scores and overall corpus readiness view. | Input corpus, Human review app |
Clustering and labeling workflow |
Trains embeddings, clusters documents, and adds document type and fine-grained metadata tags. | Input corpus, Metadata cache, Human review app |
Metadata cache |
Stores document- and chunk-level tags for search and retrieval. | Clustering and labeling workflow, GenAI application |
Deduplication workflow |
Finds duplicate/versioned documents and recommends correction strategies. | Input corpus, Human review app |
Human review app |
Vizro-based interface for reviewers to inspect scores, flagged issues, and remediation recommendations. | Quality scoring engine, Clustering and labeling workflow, Deduplication workflow |
GenAI application |
Downstream RAG or GenAI system that consumes remediated high-quality documents. | Metadata cache |
Data flow
An organization ingests an unstructured corpus. AI4DQ scores data quality, uses embeddings to cluster documents, labels clusters with document types and tags, optionally repeats labeling at chunk level, detects duplicate/versioned document sets, presents flagged issues to human reviewers, and recommends remediation before documents are used in a GenAI or RAG pipeline.
Why this architecture
The architecture addresses data quality upstream because the article says downstream GenAI failures such as hallucination, information loss, wasted compute, and leakage cannot easily be fixed after the fact.
Models used: Custom embeddings · NLP techniques · GenAI models
Scale
- QuantumBlack Labs has more than 250 technologists and supports more than 1,400 data scientists across over 100 locations.“QuantumBlack Labs has more than 250 technologists dedicated to driving AI innovation and supporting and accelerating the work of its more than 1400 data scientists across over 100 locations.”article, stated
- A public-health deployment processed 2.5 GB of data.“We ingested and processed 2.5 GB of data and identified more than ten high-priority data quality issues”article, stated
- The same deployment identified issues across more than 1,500 files.“Using AI4DQ Unstructured to prioritize the most relevant solutions, we identified issues across the 1,500+ files.”article, stated
- Metadata tags improved one RAG pipeline's accuracy by 20 percent.“One project using AI4DQ saw a 20 percent increase in RAG pipeline accuracy thanks to the addition of metadata tags on document themes.”article, stated
Alternatives considered (roads not taken)
Treat unstructured quality like structured data quality
Rejected because: The article says unstructured quality has less-established frameworks and different failure modes.
Fix GenAI failures after ingestion
Rejected because: Hallucination, information loss, wasted compute, and leakage are hard to resolve downstream.
Patterns
data-quality-loop (data)
AI4DQ scans, scores, flags, and remediates unstructured data quality before GenAI consumption.
human-in-the-loop-gate (governance)
Flagged documents and duplicate/version decisions are presented for human review.
rag-retrieval (retrieval)
Metadata enrichment and chunk-level labeling improve RAG retrieval accuracy.
privacy-preserving-processing (privacy)
The framework flags sensitive information and inappropriate access as data-quality and compliance risks.
Tradeoffs
Assess data quality before building the GenAI application
Chose upstream scoring, tagging, deduplication, and remediation over downstream fixes after the RAG app fails.
Rationale: Many downstream failures cannot easily be fixed after ingestion.
Use human review for remediation
Chose human-in-the-loop correction strategies over fully automatic deletion or correction.
Rationale: Quality scores and duplicate sets require business judgment before remediation.
Gotchas (what bit them)
Duplicate or outdated documents can poison downstream answers.
Root cause: Multiple versions of the same document may conflict or provide stale information.
Resolution: Resolve duplicate document entities and remove or correct outdated versions before training/retrieval.
Metadata gaps make retrieval weak.
Root cause: Documents lack tags across diverse corpora, making search and retrieval difficult.
Resolution: Cluster documents and chunks, label document types, and add fine-grained tags.
Unfiltered sensitive information becomes a compliance risk.
Root cause: PII or access-controlled content can be ingested without proper filtering.
Resolution: Treat sensitive-information filtering and access controls as part of unstructured data quality.
Evaluation
AI4DQ evaluates unstructured data readiness using document quality scores, metadata coverage, duplicate/version detection, document clusters, chunk-level metadata, high-priority issue counts, and downstream RAG accuracy changes.
Metrics: Data quality score · Document clusters · Metadata tags · Duplicate/versioned documents · High-priority issue count · Storage cost savings · RAG accuracy · Critical information preservation
Outcomes
- A project using metadata tags saw a 20 percent increase in RAG pipeline accuracy.
- The public-health deployment identified more than ten high-priority data quality issues.
- The deployment identified and removed over 100 irrelevant or duplicated documents.
- Removing those documents saved 10-15 percent in data storage cost.
- The work preserved information otherwise lost for 5 percent of critical policy documents.
The public-health example processed 2.5 GB of data across more than 1,500 files.