Problem
A real estate platform receives tens of thousands of new listings a day from agencies, developers and owners. The same property is often posted several times, sometimes at different prices. Search fills with repeats, demand and price analytics become inaccurate, and handling duplicates costs money. Merging too aggressively does equal harm: flats in one new-build complex share layout, area, price per square meter and template text, so wrongly merged listings hide real options from users.
Example from the article: two separate clusters of 7 listings each get fused by one false edge. Precision is about 0.98 and Recall is 1, yet two different objects have become one.
Solution in brief
A three-model cascade. A vector database returns the top 100 similar listings for each new or changed listing. CatBoost scores each pair using more than 200 features. High-scoring pairs form a graph, a test on shared neighbors removes weak edges, and connected components become clusters. It runs daily in Airflow and near-online through Kafka.
Questions this case answers
- How to detect and merge records of the same real-world entity across millions of noisy, differently formatted records without comparing every pair
- How to keep one false pairwise match from fusing two distinct clusters when building entity groups from pair scores
- How to find and merge duplicate listings that describe the same real-world object
- How to avoid merging two different objects into one cluster because of a single false pair
Tools and methods
- Qdrant — real-time vector search for the top-100 candidates
- CatBoost — pair classifier that outputs a duplicate probability
- Edge filtering by common neighbors — binomial test that drops accidental graph links
- Connected components (BFS) — turn the filtered graph into clusters of listings
- Apache Airflow — daily batch pipeline and quality reports
- Apache Kafka, PostgreSQL, Grafana — near-online streaming service and its monitoring
Google or a one-time email code. No password.
