Case Study

Advanced RAG Engineering for real estate due diligence AI Agent

The brief was an agent that can run complex due diligence for real estate development across US municipalities — geospatial, environmental, municipal, legal, and infrastructure — without a generic model inventing a zoning class.

  • Real Estate
The outcome

From weeks of site work to a remote pack in minutes

Traditional due diligence means research, consultants, and being on the parcel. Mapline.AI's agent reads parcel variables — land use, zoning, acres, wetlands, watersheds, roads, conservation, easements — and writes the report. Off-the-shelf tools hallucinated when municipal rules and document layouts diverged.

Time is published as weeks versus minutes, not a stopwatch we invented. The $2,000–$3,000 figure is what a Mapline.AI end user reported as potential savings on a 90-acre sketch-plan diligence, not a Vstorm invoice metric.

Research, site visits, and consultant rounds

Weeks

The previous path for a full due diligence analysis.

$2k–3k

Potential saving per due diligence project

End-user figure on a 90-acre land diligence with a sketch plan and multiple consultants.

About the client

Mapline.AI is a US-based startup whose product is due diligence for real estate developers. The aim is remote, comprehensive evaluation of a potential development in minutes instead of weeks of research and site visits — without requiring the developer to be on-site or fluent in local legal complexity.

Vstorm engineered the agent end to end, including the consulting that chose the architecture: not a generic RAG wrapper around municipal PDFs.

Vstorm's impact

Vstorm's impact, the TL;DR

  • Due diligence path published as weeks of work reduced to minutes
  • LlamaParse Premium for tables and layouts that Mistral OCR missed on the hard PDFs
  • Milvus with municipality and document-type metadata so retrieval is not merely nearest-neighbour
  • Custom re-ranking plus geospatial fields injected into the prompt (zoning, wetlands, adjacent roads)
  • LangSmith observability, encryption, and Mapline.AI staff can update zoning data without a Vstorm ticket

The challenge

Municipal PDFs, parcel GIS, and models that invent a zoning class

The agent had to run due diligence across US municipalities. That meant stitching high-volume streams — geospatial, environmental, municipal, legal, infrastructural — into insight-based reports that stay accurate. Parcel variables include land use, zoning class, total acres, proposed use and zoning, open space, greenways, wetlands, surface water, watersheds, adjacent and planned roads, conservation elements, trails, and access easements.

Generic tools could not follow Mapline.AI's workflow or the variance in those sets. They hallucinated. Municipal regulation differences made a custom agent the only honest path.

How we delivered

TriStorm on documents a generic OCR would scramble

The work was engineering consulting plus the agent: diagnose the diligence path, prove a RAG that survives real PDFs, then hand Mapline.AI the keys.

Diagnose the parcel stack

A feasibility pass on the due diligence process: mixed document types, municipal rule drift, time, and budget. The outcome was a realistic milestone set, not a promise that every PDF parses on day one.

  • Process diagnosis
  • Feasibility bounds
  • Milestone set

Proof of Value on the hard documents

Architecture, LLM, and advanced RAG: self-hosted Milvus, LlamaParse Premium after Mistral OCR failed the tables, metadata filters, custom re-ranking, geospatial fields in the prompt. Observability, compliance, and security designed in, not bolted on.

  • LlamaParse path
  • Milvus metadata filters
  • Re-rank + GIS injection

Hand over a system Mapline.AI can run

LangSmith traces in production. Encryption for sensitive parcel data. Mapline.AI can change zoning rules and property details without waiting on Vstorm. Updates followed staff and user feedback.

  • LangSmith
  • Encryption and compliance
  • Self-serve data updates

How it works

Four RAG moves past a vanilla retrieve-then-generate

The agent analyses legal, environmental, and planning documents and writes report sections. Basic RAG was not enough. Four custom layers raise accuracy and relevance.

Mapline RAG pipeline — retrieval, filtering, and report generation for real estate due diligence
Mapline.AI × Vstorm — RAG pipeline as built

Parsing complex documents with specialized OCR

Real estate PDFs mix tables, images, and awkward layouts. Standard extraction fails. Mistral OCR looked strong on public benchmarks and consistently underperformed on Mapline.AI's hardest files. LlamaParse Premium parsed those tables. Clean text into the LLM is the difference between a usable report and a fluent error.

Wojciech Achtelik, AI Lead Engineer at Vstorm: “Once we understood the challenge, we chose to implement a more robust OCR solution. Standard text extraction tools struggled with the complexity of real estate documents, particularly those with intricate tables. By adopting a specialized OCR setup, we achieved more accurate parsing of these challenging documents, ensuring that LLMs receive clean, reliable text for analysis.”

Metadata filtering in Milvus

The retrieval store is Milvus because it can filter on metadata. Documents are tagged with municipality and type. A query can restrict to that location and type, so the model sees the right file, not the nearest-looking file from another town.

Custom re-ranking

Not every hit is equal. After the first retrieve, a re-ranker boosts sources known to be authoritative for that report section.

Dynamic geospatial extraction

Structured parcel facts — zoning codes, land use, adjacent roads, nearby wetlands — are pulled from geospatial data and injected into the prompt with the document text. The model is not guessing those fields from prose alone.

Results

What Mapline.AI can sell

The shipped agent is specific to real estate due diligence, not a chatbot with a property theme. Diligence that took weeks can run in minutes. An end user put potential savings at $2,000–$3,000 on a 90-acre parcel that still needed a sketch plan and consultants. The system also surfaces zoning quirks and environmental details that a rushed manual review often skips.

LangSmith watches the agent in production. Encryption and compliance steps sit on the sensitive data. The architecture is meant to take more volume as Mapline.AI's corpus grows. Mapline.AI's team updates zoning and property records themselves. Feedback from that team and from users continues to tune accuracy.

Work with us

Ready to see how agentic AI transforms due diligence workflows?

Meet directly with our founders and PhD AI engineers. We will walk through real implementations from 30+ agentic projects and the practical steps to integrate them into your workflows.