Ramp migrates customer industry classification to a RAG-powered NAICS system
Ramp's industry classification relied on a homegrown taxonomy stitched together from third-party data, sales-entered data, and customer self-reporting, producing multiple non-auditable sources of truth that forced many-to-many translation layers and made cross-team alignment and external partner communication difficult.
The Homegrown system had documented issues including overly broad and inconsistent categorizations, mandatory many-to-many mappings to external standards, and classifications insufficiently nuanced to satisfy compliance requirements.
Migrating to the RAG-based NAICS system increased classification accuracy and gave Ramp's teams a consistent, auditable system with full control over updates and costs, described by stakeholders as significantly upgrading data quality and understanding of customers.
Frequently asked questions
What did this team achieve with this AI workflow?
Migrating to the RAG-based NAICS system increased classification accuracy and gave Ramp's teams a consistent, auditable system with full control over updates and costs, described by stakeholders as significantly upgra…
What tools did this team use?
RAG, Clickhouse, Kafka, LLM.
What results were reported?
Acc@k performance improvement: up to 60%; Fuzzy accuracy improvement after optimization: 5%-15%; Data quality: greatly improved our data quality; Classification accuracy: increased accuracy in industry classification (source-reported, not independently verified).
What failed first in this deployment?
The Homegrown system had documented issues including overly broad and inconsistent categorizations, mandatory many-to-many mappings to external standards, and classifications insufficiently nuanced to satisfy complian…
How is this back office ops AI workflow structured?
Business embedding generation → Similarity search in Clickhouse → First LLM prompt – initial shortlist → Second LLM prompt – final selection → NAICS code validation → Intermediate result logging.