Inspiration

In Tbilisi, the price in a rental listing is rarely the price you pay. Utilities are "separate", an agent fee of 50% of the monthly rent appears at the viewing, "first and last month" replaces a refundable deposit, and a listing titled ALL INCLUSIVE quietly adds that electricity and gas are paid by the tenant.

Comparing five flats usually means a messy spreadsheet in which a missing number becomes 0 by default, and that is exactly how a flat that looks cheap turns out expensive. We wanted a tool that reads listings the way a careful friend would: it asks what each flat really costs, and it never invents a number it cannot point to.

What it does

FlatHunt is a free AI auditor of rental listings.

  1. Add 3–6 listings as text or as a photo/screenshot.
  2. Add your places and budget: where you travel every week, how often, how, and what an hour of your time is worth.
  3. Analysis: Qwen reads every listing; each extracted value must come with an exact quote from the listing, and Python verifies that quote.
  4. Compare & audit:
    • a true cost vs. commute chart;
    • priority sliders (price, commute, quietness, contract flexibility, space) that re-rank the flats instantly and explain why the leader changed;
    • a side-by-side table where unknown terms are amber, never zero, and can be filled in after a call to the landlord;
    • red flags, each with its quote, plus local realtor practices from a knowledge base and a list of questions to ask the landlord.

The core rules: no evidence, no fact, and unknown ≠ 0.

How we built it

Backend: Python, FastAPI, SQLite/SQLAlchemy. Frontend: vanilla JavaScript (ES modules) and Chart.js. Model: Qwen 3.8 27B through Groq's OpenAI-compatible API.

Extraction. Qwen fills a strict JSON Schema at temperature 0. Every field carries a quote. An Evidence Validator searches for the quote in the original text; if it is not there, the value is reset to unknown. Photos are read by a vision model first, with Tesseract OCR as a fallback, and the app records which source produced the text.

Arithmetic is Python, not the model. Weekly prices are converted with ×4.33 and daily prices with ×30:

$$C_{\text{monthly}} = \text{rent} + \text{utilities (if paid separately)}$$

$$C_{\text{move-in}} = \text{first month} + \text{deposit} + \text{agent fee} + \text{other one-off fees}$$

$$C_{\text{year}} = 12\,C_{\text{monthly}} + \text{non-refundable one-off fees}$$

$$C_{\text{economic}} = C_{\text{monthly}} + T_{\text{commute}} \cdot v_{\text{hour}} + \text{transport cost}$$

If any term is unknown, the total is shown as "1,400 GEL + ?" rather than silently understated. Move-in cash is split into what comes back (deposit) and what does not (fees, prepaid rent).

Commute. Addresses are geocoded with OpenStreetMap (Nominatim). Routes come from OpenRouteService when available; otherwise we estimate from distance and label the result as an estimate.

Local knowledge (RAG). 15 cards describe common Tbilisi rental practices (paid viewings, last month instead of a deposit, "all inclusive" with exceptions, and more). Retrieval combines BM25, trigger phrases and structural signals with a relevance threshold of 0.25; Qwen then confirms a card against a quote. If the model is unavailable, the card is still shown but clearly labelled as a rule-based match.

Scoring.

$$\text{Data Confidence} = 100 - \sum \text{penalties}$$

For example, −40 for unknown rent, −15 for unknown utilities or deposit, and −15 for a contradiction in the text.

$$\text{Deal Score} = \sum_i w_i\, s_i, \qquad \sum_i w_i = 1$$

When a subscore cannot be computed, it is set to a neutral 50 and marked "?", so a flat neither wins nor loses on something nobody knows.

Reliability. Each flat is analysed independently: if the AI service fails for one, the finished flats are kept and Retry failed only re-runs only the failed flat. Editing a cell, moving a slider or changing places recalculates everything without calling the model.

Testing. 342 automated tests. The repository also contains an evaluation harness: 100 labelled listings for field-level accuracy and a 25-listing sample for comparing models.

Getting started. A one-click launcher (start_windows.bat / start_mac_linux.sh) sets up the environment, asks for a free Groq key and opens the app in the browser.

Challenges we ran into

  • Plausible but unsupported numbers. A language model will happily return a reasonable-looking utilities amount that the listing never states. The Evidence Validator, which resets anything without a matching quote to unknown, was the single most important design decision.
  • Keeping "unknown" honest all the way down. It is easy to say "unknown ≠ 0" and hard to keep it true through sums, scores, charts and rankings. Every total had to carry a "has unknowns" flag, and hollow dots on the chart mean "may be further right".
  • Ranking local risks. Early on, a medium-severity utilities card outranked "no written contract". We added a severity bonus that affects ranking only, never the risk itself, and fixed a case where a knowledge-base card disappeared after recalculation.
  • Mixed-language listings. Listings in Tbilisi mix Georgian, Russian and English. We detect a mixed listing when a second script makes up at least 10% of the letters.
  • Free-tier rate limits. On a free Groq key, one of several back-to-back requests can fail. Instead of hiding that, we made partial failure a first-class state: one flat fails, the others stay, and you retry just that flat.
  • Bugs found while recording the demo. Moving a priority slider to 0% could produce a weight of −1 after rounding, and the server rightly rejected it. We fixed the rounding and checked it on 200,000 random slider moves.

Accomplishments that we're proud of

  • Every number on screen can be traced to a quote in the original listing.
  • Missing information is shown as missing, with the exact question to ask the landlord.
  • The model only reads; all money, commute and scoring logic is deterministic Python, so the same inputs always give the same ranking.
  • It survives AI-service failures without losing work.
  • It is free and runs on the user's own computer with one double-click and a free API key.

What we learned

  • With LLMs, verification beats prompting: checking each quote in code made the output trustworthy in a way that prompt tweaks alone could not.
  • Splitting roles — the model extracts, the code calculates — makes the system testable and repeatable.
  • Honest UX ("+ ?", amber cells, "estimate" labels) builds more trust than a precise-looking number.
  • AI-written code still needs a human reviewer: several real defects were caught only by checking the output against the specification.

What's next for FlatHunt

  • Run and publish the live accuracy evaluation and the model benchmark from the repository.
  • Interview renters in Tbilisi and test FlatHunt against a manual spreadsheet on the same listings.
  • Paste a listing link instead of the text, and support more cities beyond Tbilisi by adding market files and local knowledge cards.
  • Real public-transport routing instead of distance-based estimates.
  • A hosted version, so no setup or API key is needed.

Built With

Share this project:

Updates

Submission history