Enterprise data integration requires matching messy schemas across CRMs, order systems, warehouses, and partner CSVs. A plain RAG pipeline can retrieve noisy evidence and still produce confident wrong matches. TrustDI Agentic RAG uses adaptive routing, evidence retrieval, and verification to make schema-matching decisions inspectable.
- Paper: Towards Trustworthy and Cost-Efficient Data Integration: From Naive RAG to Agentic RAG.
- Core idea: move from fixed naive retrieval to cost-aware agentic routing.
- Trust requirement: every decision should expose route, confidence, evidence, and rationale.
flowchart LR
A["Source schema"] --> B["Schema profiler"]
C["Target schema"] --> B
B --> D["Candidate generation"]
D --> E["Similarity scoring"]
E --> F{"Adaptive route"}
F -->|"direct"| G["Low-cost decision"]
F -->|"retrieve"| H["Local evidence retrieval"]
F -->|"agentic_verify"| I["Verifier agent"]
F -->|"external_kb"| J["Optional external KB"]
H --> K["Grounded rationale"]
I --> K
J --> K
G --> L["Evaluation metrics"]
K --> L
- Profiled source and target CSV columns before matching.
- Combined name, type, value, and graph-style scores for candidate ranking.
- Routed easy matches directly to reduce LLM cost.
- Routed ambiguous matches through retrieval-backed verification.
- Returned confidence, evidence, route, and rationale for every match.
- Kept OpenAI explanations optional so demos and CI can run offline.
| Metric | Purpose |
|---|---|
| Precision | Fraction of predicted matches that are correct |
| Recall | Fraction of true matches recovered |
| F1 | Balance between precision and recall |
| Evidence relevance | Whether retrieved context supports the decision |
| Review rate | How often uncertain cases are routed for verification |
| External-KB rate | How often optional external knowledge is needed |
This project moves RAG into a real business workflow: schema matching, cost-aware routing, confidence reporting, evidence-grounded decisions, and evaluation. It shows applied AI engineering rather than only document chat.
- The portfolio benchmark is small and should not be presented as broad enterprise accuracy.
- External knowledge lookup is optional and disabled unless configured.
- A production data-integration system would need richer connectors, access control, audit logs, and larger golden datasets.
- Add a larger schema-matching benchmark with more industries.
- Add ablation tables comparing direct, retrieval, and agentic routes.
- Add live dashboard screenshots.
- Add Docker Compose for API and dashboard review.