Read the latest blog: Powered by Lemma Series: How Ricoh Standardized Equipment-Investment Decisions with Production-Grade, Controlled AI.Powered by Lemma: The Ricoh case study. Learn more

Powered by Lemma Series

How Ricoh Standardized Equipment-Investment Decisions with Production-Grade, Controlled AI

Ricoh logo

Jen Hilibrand - VP, Applied AI and Strategy at Thread AI

Bhavana Jonnalagadda - Applied AI Engineer at Thread AI

Shun Tanaka - VP, R&D at Ricoh

September 3, 2026

In this installment of our Powered by Lemma series, we explore how Ricoh’s Facilities Management business is using a compound AI system in Lemma to turn an estate of unstructured inspection documents into consistent, auditable capital-investment decisions.

Challenge
Manual, inconsistent equipment-investment reporting at scale
Solution
A production-grade data-extraction pipeline + report-generation engine: a compound AI system on Lemma
Impact
Thousands of report cycles automated, leading to time saved and high impactful business outcomes, powered by multi-modal data processing.

Context

Ricoh’s Facilities Management business runs thousands of buildings and hundreds of thousands of assets: elevators, boilers, air handlers, water treatment. Each needs a repair-or-replace call (report) carrying real cost and risk.

Those calls run on documents: inspection checklists, repair histories, statutory certifications, drawings, site photos. Most is unstructured, much is Japanese, some is handwritten, and a great deal lives in decades-old Excel templates and scanned PDFs never meant to be machine-read. Meaning hides in a merged cell, a marginal note, or a photograph.

That rules out generic AI summarization. Errors are expensive, and a recommendation is only useful if a reviewer can see what it rests on. The system Ricoh adopts to tackle these problems must be able to handle everything described and more, in order to succeed and thrive as production workflows.

“Thread AI allows us to build cutting-edge internal and external products that leverage best-in-class models, connecting our systems and services to a range of model and agent architectures through one agnostic infrastructure. What that unlocked for us is concrete: our real challenge was never a shortage of expertise, but that our expertise didn’t scale evenly across sites and reviewers. Lemma let us build that judgment and apply it consistently, with every recommendation traceable to the source evidence. Our time-to-value on new AI functionality is accelerated because of the infrastructure powering the Lemma platform.”
Shun Tanaka, VP, R&D at Ricoh

The Challenges

Business Challenges

Labor-intensive. Field engineers manually aggregate inspection results, trouble history, and hard-won expert knowledge into proposal materials for every single piece of equipment being considered for repair or renewal. The load per asset is very high, and it is repeated across the estate every planning cycle. A single month’s catalog at one representative site in Japan held 87 usable files, which extrapolates to 13,500+ files per year across multiple sites in scope.

Limited data. The original prototype only reached Ricoh’s structured asset-management system of record. Everything living in unstructured files (inspection reports, photos, drawings, trouble notes) was missed entirely, because interpretation accuracy for inspection tables, photos, and drawings was too low to rely on. The system was, in effect, making judgments about equipment it could not actually see.

Inconsistent. There was no shared framework for comparing investment proposals. Judging criteria varied by reviewer and by site. As Ricoh’s management framed it, there was “no know-how to judge proposals from departments, and the standards are ambiguous.” Two equivalent assets could be scored differently depending on who reviewed them and where.

The input corpus makes the difficulty concrete. Inspection files arrive at a rate of over 80 files per month, in formats and layouts that are not standardized and vary widely. These range from structured Excel checklist templates with merged cells and multi-row headers of which there are: tens of template variants, diverse PDF formats, macro-enabled .xls/.xlsm files, GPS-tagged photographs, embedded tables, and handwriting, most of which is in Japanese. Behind them sits the master data: hundreds of projects and thousands of work tickets of accumulated history. The real business metrics here are time saved and consistency of judgment, not model benchmarks.

Japanese facility inspection paperwork from one site: periodic inspection reports for electrical, HVAC, fire-protection, water-supply and elevator equipment, a findings summary, an overall assessment, and photographs of terminal blocks, water tanks and a brake lining.
Representative source documents from a single facility: checklist templates, scanned certifications, maintenance reports, handwritten forms, and equipment photographs, all in Japanese.

Technical Complexities in Enterprise Systems

In general, production-ready enterprise workflows have hard requirements of the following; not nice-to-haves, but needed for a system to be trusted and deployed at a global scale.

Correctness
and Repeatability

Stable
Same behavior under load, provider upgrades, and partial outages
Deterministic
Identical inputs → identical outputs; randomness pinned and contained to where it’s needed
Reproducible
Any past run can be replayed and explained from stored inputs, versions, and config
Idempotent
Re-running or re-ingesting produces no duplicate records or repeated side effects

Trust
and Visibility

Secure
Least-privilege access to data, credentials, and models at every step
Auditable
Every output traceable to source record, page/cell, prompt version, and model version
Observable
Per-run tracing, cost and token accounting, coverage/quality metrics, alerts on silent regression

Capability
and Adaptability

Intelligent
AI applied where judgment is genuinely required, not everywhere
Flexible
New document types, schemas, and languages absorbed without a rewrite
Customizable
Domain constants and thresholds live in configuration, not buried in prompt text
Self-Improving
Human corrections captured as eval and training signal, not discarded

Operability
at Scale

Scalable
Fan-out over thousands of items with per-item failure isolation
Cost-Bounded
Expensive paths are rare by design; unit cost per document is known and metered
What a production-ready enterprise workflow has to guarantee, grouped into four properties.

All of the above apply in our particular scenario, with additional challenges unique to the two major development efforts:

Data Extraction

Where most of the hidden work lives

1

Entity resolution & record linkage

Entity resolution (detecting which records refer to the same real-world object) is a core data-integration task that is naively complex and requires intelligent engineering to make efficient 1. In Ricoh’s case, every extracted record has to be matched to the specific asset it describes to be usable.

2

Data contracts & schemas

The data extractor and its consumers need an explicit, versioned agreement about shape, types, and permitted values. A strict and structured approach may seem over-engineered for simple data ingestion, but “data cascades are downstream failures triggered by practices that undervalue data quality” 2, and they matter most in high-stakes settings.

3

Handwriting & photos

Handwritten text recognition remains an active research area with open challenges rather than a solved one 4, and the gap widens for Japanese: research on Japanese handwriting recognition lags English work substantially 5. Photos can compound on that issue by containing handwritten text within them, while also containing extremely meaningful but also context-dependent information wrapped up within an obscure image.

Report Generation

Multi-modal data synthesis by generative AI into actionable reports

1

Knowledge bases, retrieval and synthesis

The generation step is a retrieval problem before it is a writing problem. What the report can say is bounded by what was retrieved, and synthesis across multiple retrieved records is where value is added, combining a measurement trend, a repair history, details from an inspection photo, and an equipment record into one assessment no single source contains.

2

Domain understanding

Retrieval and fluency do not substitute for knowing the domain. The data-cascades study found that high-stakes AI is disproportionately built at the intersection of two or more disciplines, which raises the collaboration burden between application-domain experts and the people building the system 2. The institutional knowledge living in the heads of experts must be brought into the digital realm for AI to properly do its job.

3

Grounding & attribution

Every claim needs to tie to a source record or measurement, and the absence of evidence should be stated rather than filled in.

The Solution

Two workflows. AI when required, deterministic code everywhere else.

Ricoh’s problem splits cleanly into two pipelines with different failure modes, and therefore different designs. Data extraction turns an unstructured file dump into linked, queryable records. Report generation turns those records into a defensible investment recommendation.

Data Extraction: AI interprets once, deterministic code executes the rest

The data extraction pipeline, from file storage through trigger and filter, extract, ID linkage and upload into the datastore, with the Extract and ID Linkage stages expanded underneath.
Target data extraction workflow, run on as many files in a batch as needed.

Field teams upload files to cloud storage. A Lemma worker detects new or changed files via content fingerprinting, extracts findings with an AI agent, matches each record to the right building and equipment, and stores results with full provenance.

Data wrangling

Refinement in layers

Extraction is not one step, it’s a progression. The pipeline follows a medallion architecture, a layered design pattern whose goal is to incrementally and progressively improve the structure and quality of data as it flows through each layer 8. The layering is what makes cleaning a platform responsibility instead of a per-consumer one: the same defense against the compounding downstream failures that undervalued data quality produces 2.

Extract

Deterministic parsers where they fit, AI everywhere else

Exact match means exact. A parser that mostly fits a document is the worst outcome possible: it succeeds loudly and produces silent garbage. This is the wrapper-drift problem, and the established defense is verification: monitor whether the extractor’s output still matches its expected shape, and repair or escalate when it doesn’t 3. Here, escalation is free. A near-miss doesn’t fail the run; it falls through to the AI path.

Today, the AI path carries most of the volume by design. Ricoh’s corpus is a long tail of formats that were never designed to be machine-read, and hand-writing a parser for a format seen only three times is wasted engineering. Every agentic session runs with a restricted, explicitly granted toolset. This path is also where the genuinely hard documents live; for handwritten text and images, vision-language models win over traditional OCR due to context-importance and generalization ability 6, 7.

The deterministic path (algos meant to parse specific re-occurring data shapes) gets added thoughtfully over time. The result is a cost and accuracy curve that improves with operational age rather than degrading, and the decision to add a parser is Ricoh’s to make, not a re-engineering request.

ID Linkage

Cheap first, smart second, human third

An extracted reading is worthless until it attaches to the right pump in the right building. Linkage runs as a three-tier cascade:

  • Deterministic linkage algorithm. Reference tables of IDs and known aliases resolve the majority of records with zero AI calls.

  • Agentic session, triggered only on a miss. If no linkage reference or alias exists, an agent is invoked with read-only access to SQL data and the reference tables, and proposes a candidate mapping.

  • Handoff to a human. When a new alias or linkage rule is proposed, a person approves it before it is written.

Approved rules are written back to the reference tables, so the expensive path gets rarer over time. The tables are versioned and auditable: for any linked record, you can reconstruct exactly which rule matched, when it was created, and who approved it.

Data integrity watchdog

Future implementation

A separate Lemma worker patrols the datastore continuously, independent of ingestion. It catches duplicate records, empty records, other questionable data, and processing failures surfaced from run logs, then queues affected files for reprocessing. Extraction quality is measured, not assumed, and through the natural auditability built into Lemma, the watchdog will provide easily-understandable and traceable info for improving the main workflow over time.

Report generation: bounded inputs, bounded outputs, cited claims

Report generation: a target project feeds a Lemma worker that retrieves and normalizes data, runs an AI call chain, and assembles a report into Ricoh’s internal web UI, with feedback and an audit log.
Target report generation workflow, for a single given project identifier.

The input is deterministic: a fixed single “project” with pre-determined associated entities.

That single design decision removes an enormous class of failure. There is no open-ended agent deciding what to look at.

Data preprocessing: zero AI calls

Everything before the first prompt is purely algorithmic:

1

Retrieve

All data relevant to the associated entities across every source: structured data records, extracted inspection findings, measurement histories, and any saved human feedback from previous runs of this same project.

2

Hydrate

The records into full objects.

3

Normalize

Into a fixed-upper-bound data package, so context can never be overrun by a data-rich project.

4

Compute signals

Ratios, trends, thresholds, and scores, computed deterministically before the model ever sees them.

Doing the arithmetic in code rather than in a prompt is what makes the same inputs produce the same scores, run after run. The models narrate, and do not calculate.

AI call chain

Sequential and tightly-controlled AI prompting with prompts and domain constants held as version-controlled configuration.

Prompts, domain constants, target lifespans, and category weights live outside the workflow definition as configuration. Ricoh’s subject-matter experts can edit the language and the thresholds without touching the worker.

This is a compound AI system: state-of-the-art results increasingly come from systems with multiple interacting components (multiple model calls, retrievers, and tools) rather than from a single monolithic model 9.

Audit trail

Every run (inputs, prompt version, model version, outputs, internal state, and more) is written to an audit log, and any past report can be replayed and explained from its stored inputs and configuration. For a capital-investment decision, that log is the deliverable’s defensibility.

Target architecture: integration with Ricoh’s systems

The next step is for the report to land where the work already happens: integrated into a Ricoh internal application where the end user can give structured feedback. Feedback would re-enter the pipeline on the next run for the same project, thus completing the integration of institutional knowledge and closing the self-improving feedback loop.

Additionally, feedback implementation would enable large-scale end-to-end operationalization; as Lemma workers are composable and “forkable”, different feedback systems for different facilities and operational knowledge could be quickly scaled up in sub-linear time.

Baked into Lemma: Controlled Autonomy

At Thread AI, the 3 pillars of controlled autonomy do not represent additional challenges because their solutions are baked-into the operability of Lemma.

Control

What can this agent do and access?Restricted, explicitly granted toolsets per agentic session. Least-privilege credentials scoped per function. An extraction agent that only needs to read schemas cannot write anywhere.

Governance

What did the agent do?Immutable, observable, replayable runs as the audit substrate. Every state’s inputs and outputs, every prompt version, every model version, every human intervention: persisted by default, not bolted on.

Reliability

Did it execute correctly and consistently?Durable execution with per-state retries, timeouts, fallbacks, and compensating actions. Immutable worker versions guarantee that the same inputs produce the same run.

What Lemma provides natively

  • Wrapping legacy and undocumented systems as reusable, credentialed functions. Structured data stores and API calls (Snowflake, SharePoint, internal APIs, and more) become composable steps, and vendor spec gaps get solved once instead of once per workflow.

  • Immutable, versioned workers, so any past report can be replayed and explained from its stored inputs and configuration.

  • Per-run tracing with cost and token accounting, making unit economics per report a known number rather than a surprise.

  • Handoff states that pause a run for human approval and resume with the human’s input captured in context.

  • Fan-out/fan-in over thousands of documents with per-item failure isolation: no custom queue infrastructure, no partial-batch corruption.

  • Credentialed functions with least-privilege scoping for all API calls. Secrets referenced, never inlined.

This built-in functionality in Lemma is what enables trust and usage to bring a system past the trial, into a full-blown production workhorse.

The Impact

As with every Lemma deployment, the value shows up at two distinct levels: accelerating the work Ricoh already does, and unlocking work that was previously out of reach.

Level 1: Accelerating the known (report efficiency)

The most immediate win is speed. What was a manual, per-asset assembly of inspection results, trouble history, and expert knowledge becomes a report generated from a single project identifier.

  • From hours of manual assembly to ~3 minutes of generation per report across thousands of completed runs spanning configurations and projects.

  • Cut generation latency by 43%, from 224 seconds to 127 seconds per report.

  • 89.6% of reports showed improved generation quality, driven by incorporating unstructured data and systematic, model-agnostic optimization through Lemma.

  • Run-to-run score variance dropped 74%, from 0.312 to 0.080.

  • Adding unstructured data further reduced variance by 52%, from 0.168 to 0.080.

  • Proven at scale, running across thousands of buildings, tens of thousands of pieces of equipment, hundreds of projects, thousands of work tickets, and various document types.

Level 2: Unlocking the unknown (decision quality and standardization)

  • Consistent judgments across reviewers and sites. Investment decisions now run on the same rubric and the same evidence standards, every time. That directly addresses the “ambiguous standards” problem Ricoh’s management named.

  • Unstructured evidence now reaches the decision. Real inspection findings are cited in place of age-based defaults, so the system now judges equipment it can actually see.

  • Data gaps became a managed asset. Because every field is source-tagged and threshold flips are computed explicitly, the report can say “if this unknown fact were known, the score would shift by N points,” turning missing data from an invisible risk into a quantified, trackable one.

  • Entity ID linkage means unusable files are now programmatically- and AI-accessible source insights, for even the most obscure documents.

“It is impressive that the system was able to find a basis for linkage that would be difficult even for a human reviewing the file to discover.”
Shun Tanaka, VP, R&D at Ricoh

If your own high-stakes decisions are buried in documents that were never built to be read by a machine, contact our team to learn how Lemma can help.

1 G. Papadakis, D. Skoutas, E. Thanos, and T. Palpanas, “Blocking and Filtering Techniques for Entity Resolution: A Survey,” ACM Computing Surveys, vol. 53, no. 2, pp. 1–42, 2020. https://arxiv.org/abs/1905.061672 N. Sambasivan, S. Kapania, H. Highfill, D. Akrong, P. Paritosh, and L. M. Aroyo, “‘Everyone wants to do the model work, not the data work’: Data Cascades in High-Stakes AI,” in Proc. CHI ’21, 2021. https://dl.acm.org/doi/10.1145/3411764.34455183 K. Lerman, S. N. Minton, and C. A. Knoblock, “Wrapper Maintenance: A Machine Learning Approach,” Journal of Artificial Intelligence Research, 2003. https://arxiv.org/abs/1106.48724 C. Garrido-Munoz et al., “Handwritten Text Recognition: A Survey,” arXiv:2502.08417, 2025. https://arxiv.org/abs/2502.084175 “Handwritten Recognition Techniques: A Comprehensive Review,” Symmetry, vol. 16, no. 6, art. 681, 2024. https://www.mdpi.com/2073-8994/16/6/6816 “KITAB-Bench: A Comprehensive Multi-Domain Benchmark for Arabic OCR and Document Understanding,” arXiv:2502.14949, 2025. https://arxiv.org/abs/2502.149497 S. K. Nigam, P. A. Shukla, N. Shallum, and A. Bhattacharya, “Seeing Justice Clearly: Handwritten Legal Document Translation with OCR and Vision-Language Models,” arXiv:2512.18004. https://arxiv.org/abs/2512.180048 “What is the medallion lakehouse architecture?” Databricks Documentation. https://docs.databricks.com/aws/en/lakehouse/medallion9 M. Zaharia, O. Khattab, L. Chen, J. Q. Davis, H. Miller, C. Potts, J. Zou, M. Carbin, J. Frankle, N. Rao, and A. Ghodsi, “The Shift from Models to Compound AI Systems,” Berkeley Artificial Intelligence Research Blog, Feb. 18, 2024. https://bair.berkeley.edu/blog/2024/02/18/compound-ai-systems/
Made In NY badge

©️ 2026 Thread AI, Inc.

666 Broadway. Floor 5. New York, NY 10012