RMRuize MaAI SYSTEMS LAB
Projects

LLM Agent / Map Data Quality

POI Quality Agent

A small LLM-agent style workflow for POI data quality judgment using mock map, merchant, user feedback, and spatial evidence.

Run demoGitHub placeholder

Evidence chunks

10+

mock multi-source signals

Top-K retrieval

5

ranked evidence

Workflow steps

7

visible tool trace

overview

The FastAPI backend loads mock POI cases, routes the task type, retrieves evidence chunks with deterministic top-k scoring, compares multi-source signals, computes spatial consistency, makes a conservative quality decision, and uses OpenRouter/Gemini only to explain the fixed decision.

role

Portfolio demo: built a map-data quality agent console for address correction, merchant status judgment, duplicate POI detection, evidence retrieval, tool tracing, and explainable manual-review decisions.

backend runner

Run original project workflow

Calls /api/poi/run on the FastAPI wrapper at https://ruizelab-api.onrender.com.

POI scenario

Request payload

case_relocation_luckin · top_k 5 · OpenRouter/Gemini explanation enabled

backend contract

Start the backend with uvicorn backend.main:app --reload --port 8000. The UI displays mode and provenance so recorded artifacts are clearly distinguished from live computation.

No backend result yet

Configure the inputs and run the backend to display the original project trace and outputs here.

architecture flow

Agent and model flow

The live pipeline trace appears in the backend runner after execution. This section shows the original project components that the backend wraps.

01

planner

Task Router

task type

Classifies a POI query as address correction, duplicate detection, or merchant status checking.

02

retrieval

Evidence Retriever

top-k chunks

Ranks mock map, merchant, user feedback, historical, order, photo, and external listing evidence with top-k scoring.

03

spatial

Geo Distance Tool

meters

Calculates haversine distance or pair distance to judge relocation and duplicate POI consistency.

04

verifier

Evidence Comparator

decision groups

Groups evidence by support label, highlights conflicts, and keeps risky POI updates in manual review.

05

explainer

Gemini Explanation Generator

explanation

Uses OpenRouter/Gemini for a concise Chinese explanation while preserving the deterministic decision.

tools and models

Components behind the demo

planner

Task Router

task type

Classifies a POI query as address correction, duplicate detection, or merchant status checking.

retrieval

Evidence Retriever

top-k chunks

Ranks mock map, merchant, user feedback, historical, order, photo, and external listing evidence with top-k scoring.

spatial

Geo Distance Tool

meters

Calculates haversine distance or pair distance to judge relocation and duplicate POI consistency.

verifier

Evidence Comparator

decision groups

Groups evidence by support label, highlights conflicts, and keeps risky POI updates in manual review.

explainer

Gemini Explanation Generator

explanation

Uses OpenRouter/Gemini for a concise Chinese explanation while preserving the deterministic decision.

example input

判断瑞幸咖啡中关村大街店是否地址正确,是否疑似搬迁

final result

The backend returns original POI records, scored top-k evidence, a seven-step tool trace, grouped evidence comparison, a deterministic quality decision, an optional Gemini explanation, limitations, and provenance.

limitations

  • This demo uses mock POI evidence, not real Didi or production map data.
  • The scoring formula is deterministic and transparent, but not a production POI correction model.
  • Address replacement, duplicate merge, and merchant status changes are intentionally routed to manual review.