Skip to content
S/N
Selected work
01 — AI & Applied Technology

An agent that answers from sources, and shows its work.

Type
hybrid
Role

Designed and built end to end: data collection, cleaning, retrieval, agent, front end, deployment

Context
Property buyers ask questions that mix a developer's projects with the wider market. A useful assistant has to cite where each answer came from and admit what it does not know.

01The brief

Built in a day for a company, as a working proof rather than a slide. A tool-using agent answers DarGlobal questions, searches Wasalt listings with real filters, and compares the two, with an English and Arabic interface.

Property buyers ask questions that mix a developer's projects with the wider market. A useful assistant has to cite where each answer came from and admit what it does not know.

A tool-using agent over BM25 retrieval and structured listing records, streamed from FastAPI to a React front end and shipped as a single Docker image.

Challenges

  • Listing pages sit behind bot protection, so the data had to be sourced without defeating it
  • Free hosting and free models: 512 MB of memory, rate limits, cold starts
  • Answers must stay grounded in public data and never expose personal details

02How it works

Purpose

Build a knowledge base from public sources only: DarGlobal's website and Wasalt's published sitemaps and archived listing pages.

Inputs

  • → darglobal.co.uk (crawled in a real browser session)
  • → Wasalt sitemaps
  • → Internet Archive snapshots of listing pages

Outputs

  • ← 135 DarGlobal pages, 116 with real content
  • ← 60,000 indexed Wasalt listings
  • ← 8,584 city and district market pages

Considerations

  • Wasalt's robots.txt allows the sitemap crawl
  • Live listing pages sit behind a human check; archive snapshots were used instead of trying to defeat it
  • Delay between requests

03Approach

My role

  • Designed and built end to end: data collection, cleaning, retrieval, agent, front end, deployment

Approach

  • Crawl public pages politely; use sitemaps and archive snapshots for Wasalt
  • Keep text search simple (BM25) and listings structured so filters are exact
  • Give the model three tools and tell it to answer only from tool results
Archive snapshots, not a workaround
Live Wasalt listing pages sit behind a human check. Rather than try to defeat it, I used public Internet Archive snapshots of the same pages, which carry the listing data.
BM25 before embeddings
Keyword search needs no GPU or embedding model and fits a 512 MB free container. Hybrid search is the stated next step, not a first-version dependency.
Structured listings, not text guessing
Listings are stored as records so a question like '3-bed in Riyadh under SAR 900k' becomes a real filter instead of a similarity guess.
Privacy by omission
From listings I keep property facts only. Owner names, phone numbers and other personal data are dropped before indexing.

04Results

  • 60,000

    Wasalt listings indexed

  • 116

    DarGlobal pages with content

  • 3

    Agent tools

  • ~100 MB

    Memory footprint

  • Live demo on Render, in English and Arabic
  • Answers show their sources, the lookups made, and listing cards
  • Recorded walkthrough for client review

05Honest limits

  • Wasalt data is a snapshot, not live. In production I would ask Wasalt for a partner feed or API.
  • Keyword search can miss paraphrases; hybrid search and a re-ranker would be next.
  • Free models can be slow or rate-limited at peak; fallbacks reduce this but a paid model would remove it.
  • Free hosting sleeps when idle, so the first load can take up to a minute.
  • Python
  • FastAPI
  • React
  • Vite
  • BM25
  • Docker
  • Render
  • OpenRouter