GrabNick BuhrerProblem & solution
Metasense V2: Enhancing, improving and productionisation of LLM powered data governance
Summary
Metasense V2 addresses automated data governance by improving an LLM-powered metadata generation and classification system. It builds on an initial rollout that scanned more than 20,000 data entries at 300–400 entities per day, but retained human verification to catch misclassifications. Post-rollout owner feedback and manual classifications from the Data Governance Office supplied training and testing data, exposing failures involving PII in business email columns, nested JSON, and passenger communications. The revised approach splits PII and non-PII tagging, reduces the PII tag set from 21 to 8, shortens the prompt from 1,254 to 737 words, and divides tables exceeding 150 columns. LangChain and LangSmith support prompt development, evaluation across accuracy, latency, and error rate, deployment, and monitoring, while threshold-based alerts trigger a model-improvement protocol when misclassification rates rise.
Context
The initial model automated metadata generation and reduced manual classification work, but post-rollout analysis and owner feedback revealed weaknesses in identifying PII within mixed or large data samples. Human verification remained necessary to prevent misclassifications, including cases involving business email columns, nested JSON, and passenger communications.
Approach / What changed
Metasense V2 separates PII tagging from other classifications, reduces the PII tag set from 21 to 8, simplifies prompts from 1,254 to 737 words, and splits tables with more than 150 columns. LangChain and LangSmith provide prompt construction, collaborative experimentation, evaluation, deployment, and monitoring, with alerts and a model-improvement protocol for elevated misclassification rates.
Takeaways
The second iteration uses post-rollout table-owner feedback and manual classifications from the Data Governance Office as training and testing datasets.
Tables with more than 150 columns are divided into smaller tables so the LLM can focus on classifying individual columns.
LangSmith evaluations expose prompt performance across accuracy, latency, and error rate, while threshold alerts support ongoing quality control.
Source and freshness
- Source
- engineering.grab.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.