Using RAG to Improve Industry Classification Accuracy
ramp · Finance · 2025 · source Agentic: yes · 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: Fintech LLM platform portfolio
Ramp needed production LLM capabilities across financial data analysis, merchant matching, expense approvals, industry classification, resource integration, and retrieval infrastructure.
Constraints:
- The source is a portfolio-style summary of multiple Ramp engineering posts rather than one full implementation deep dive.
- Financial applications require trust, accuracy, compliance, and auditability.
- Merchant matching and classification depend on retrieval over current business data.
- Reusable infrastructure matters because Ramp is deploying LLMs across several product surfaces.
- Company-published claims such as state-of-the-art classification should be treated cautiously.
Architecture
Ramp appears to be building a portfolio LLMOps platform: an agentic data analyst answering data questions, smart RAG for merchant matching, trustworthy agents for expense approvals, RAG-based industry classification, transaction embeddings for retrieval, an MCP server for structured resource access, and ML infrastructure such as YAML configuration and Metaflow to support iteration and deployment.
Diagram confidence: reconstructed (reconstructed from prose).
flowchart LR ramp-product-workflows["Ramp product workflows"] --> llm-application-portfolio["LLM application portfolio"] llm-application-portfolio --> rag-and-embedding-layer["RAG and embedding layer"] rag-and-embedding-layer --> transaction-embeddings["Transaction embeddings"] llm-application-portfolio --> mcp-resource-server["MCP resource server"] mcp-resource-server --> ramp-resources["Ramp resources"] llm-application-portfolio --> ml-infrastructure["ML infrastructure"]
Components
| Component | Role | Interacts with |
|---|---|---|
Ramp product workflows |
Expense, merchant, data analysis, and classification surfaces using LLM capabilities. | LLM application portfolio |
LLM application portfolio |
Includes data analyst agents, merchant matching, expense approvals, and industry classification. | Ramp product workflows, RAG and embedding layer, MCP resource server, ML infrastructure |
RAG and embedding layer |
Retrieves merchants, transactions, industry examples, categories, and definitions for LLM decisions. | LLM application portfolio, Transaction embeddings |
Transaction embeddings |
Improve retrieval and accounting functionality through learned transaction similarity. | RAG and embedding layer |
MCP resource server |
Gives LLMs structured access to company resources and tools. | LLM application portfolio, Ramp resources |
Ramp resources |
Company data and operational resources exposed through MCP. | MCP resource server |
ML infrastructure |
Provides configuration, Metaflow workflows, reproducibility, and deployment support. | LLM application portfolio |
Data flow
Financial-product workflows call into shared LLM infrastructure. Retrieval and embedding systems surface merchants, transactions, industry definitions, or company resources; LLMs or agents perform matching, classification, analysis, or approval reasoning; MCP standardizes tool/data access; and underlying ML infrastructure supports configuration, experimentation, and deployment across use cases.
3 supporting quotes
Why this architecture
Ramp's architecture is platform-shaped because multiple financial workflows need consistent, secure LLM access to company data and retrieval systems. Reusable infrastructure such as MCP, embeddings, and ML configuration lets one investment support several product applications.
Models used: LLMs · RAG systems · Transaction embeddings · MCP server
Scale
- Ramp Research handles over 1,000 data questions per month.“this AI agent handles over 1,000 data questions per month.”summary, stated
- The merchant matching system resolves issues in under 10 seconds.“resolving merchant matching issues in under 10 seconds using smart RAG and LLMs”summary, stated
Alternatives considered (roads not taken)
Rely on LLMs alone for merchant and industry knowledge
Rejected because: Ramp combines LLMs with retrieval over current company data and examples.
Build one-off LLM integrations per feature
Rejected because: Ramp invested in MCP and ML infrastructure for reusable access and deployment patterns.
Patterns
rag-retrieval (retrieval)
Ramp uses RAG for merchant matching and industry classification so LLM decisions are grounded in current records, examples, and definitions.
tool-use-orchestration (integration)
Ramp's MCP server provides structured tool and resource access for multiple LLM applications.
agent-memory (data analysis)
The data analyst use case implies ongoing schema/data context management for repeated data questions.
retrieval-ranking (embeddings)
Transaction embeddings improve retrieval for accounting, merchant, category, and historical-pattern matching.
safety-policy-enforcement (financial automation)
Expense approval agents require transparency, edge-case handling, audit trails, and escalation because they make financial decisions.
Tradeoffs
Reusable LLM infrastructure
Chose Build MCP and shared ML infrastructure over Independent point integrations.
Rationale: Shared infrastructure supports multiple LLM-powered financial workflows consistently.
RAG for classification
Chose Retrieve examples or definitions to support classification over Pure fine-tuned or pure prompt-only classification.
Rationale: RAG can adapt to new industries or changing definitions without full retraining.
Gotchas (what bit them)
Portfolio summaries can overstate technical certainty.
Root cause: The source aggregates company blog titles and brief descriptions rather than full implementation details.
Resolution: Treat claims as company-published and avoid inferring internal mechanisms not described.
Financial LLM agents need trust and auditability.
Root cause: Expense approvals and finance decisions carry real monetary and compliance consequences.
Resolution: Ramp explicitly frames trustworthy agents around transparency, edge cases, audit trails, and escalation.
RAG classification depends on retrieval quality.
Root cause: Industry classification and merchant matching need relevant examples or records before the LLM can make a grounded decision.
Resolution: Ramp invests in embeddings and retrieval systems alongside LLM reasoning.
Evaluation
The source reports production metrics for selected applications but does not provide full evaluation methodology for each system.
Metrics: 1,000+ data questions per month · Under 10 seconds merchant matching · State-of-the-art industry classification claimed but not detailed
Outcomes
- Ramp reports an agentic data analyst handling over 1,000 data questions monthly.
- Ramp reports smart-RAG merchant matching resolving issues in under 10 seconds.
- Ramp has invested in MCP, embeddings, RAG, and ML infrastructure for multiple LLM applications.
- The public source supports portfolio-level conclusions rather than detailed per-system outcome claims.
The strongest quantitative claims are over 1,000 data questions per month and under-10-second merchant-matching resolution.