Ramp builds in-house RAG model to migrate industry classification to NAICS codes
Ramp's industry classification depended on a homegrown taxonomy stitched together from third-party data, sales-entered data, and customer self-reporting, yielding multiple non-auditable sources of truth and preventing teams from sharing a consistent customer view.
The homegrown system produced overly broad labels — classifying a hiring platform alongside law firms and dating apps under 'Professional Services' — and required complex many-to-many mappings across 100+ internal levels to translate to standard codes, making cross-team alignment and auditing impossible.
Ramp's in-house RAG model increased classification accuracy, gave the team full control over updates and tuning, helped internal teams work more cohesively, and enabled more precise communication with external partners.
Frequently asked questions
What did this team achieve with this AI workflow?
Ramp's in-house RAG model increased classification accuracy, gave the team full control over updates and tuning, helped internal teams work more cohesively, and enabled more precise communication with external partners.
What tools did this team use?
RAG, LLM, Clickhouse, Kafka.
What results were reported?
Retrieval stage accuracy improvement (acc@k): up to 60%; fuzzy accuracy improvement after LLM optimization: 5%-15% (source-reported, not independently verified).
What failed first in this deployment?
The homegrown system produced overly broad labels — classifying a hiring platform alongside law firms and dating apps under 'Professional Services' — and required complex many-to-many mappings across 100+ internal lev…
How is this back office ops AI workflow structured?
New business enters pipeline → Embedding-based retrieval → Clickhouse similarity search → LLM first pass — narrow candidates → LLM second pass — final selection → NAICS code validation → Kafka logging and iteration.