Why this work, at that time
Zillow launched an app in ChatGPT in October 2025. This case is an illustrative Rentals-team RAG expansion and does not represent how that app was built.
The problem
Early model-proxy answers handled short structured fields but struggled with longer public policies. Retrieval had to improve grounding, shorten prompts and let current records supersede stale snippets. Out of scope: financial advice, protected characteristics, unpublished tenant documents, and rent or availability answered from embeddings.
The team and my part
Modeled ownership: retrieval API, metadata filters, answer citations, React integration, rollback plan and on-call alerting, plus a design RFC written with one search engineer. A search engineer operates the index, a backend engineer owns ingestion, a frontend engineer owns the renter experience, and QA owns the golden dataset.
Data and index design
document_snapshot(doc_id, property_id, kind, source_uri, source_version, visibility, fetched_at, deleted_at); chunk_index(chunk_id, doc_id, chunk_seq, content_hash, embedding_ref, token_count, updated_at); retrieval_audit(request_id, property_id, top_chunk_ids, index_version, prompt_version, grounded, abstained, latency_ms); ground_truth_case(case_id, question, expected_evidence_ids, risk_category, expected_answer_behavior, last_reviewed).
API and event contract
POST /v1/rentals/{propertyId}/ask with question, filters and sessionId. 200 returns status grounded with answer, sources (docId, chunkId, url, version) and retrieval metadata, or status insufficient_evidence with an empty source list.
Core logic
The server enforces property_id and visibility filters before rerank, so scope is never delegated to the model. Eight candidates rerank to four passages, with lexical fallback when embeddings are unavailable. Every substantive clause must map to a retrieved chunk and its canonical URL, or the answer is refused.
Implementation sequence
- Choose public documents only. Define the sensitivity filter, allowed fields and a source-of-truth matrix for rent and availability.
- Normalize HTML and feeds, chunk by heading, preserve source versions and hash chunks to avoid re-embedding unchanged content.
- Embed in bounded batches, and use a versioned alias with blue/green reindexing for schema changes.
- Ship the filtered retrieval endpoint, then add citation constraints and refusal when no evidence remains.
- Add React source links and feedback, with correlation ids and questions redacted from metrics.
- Build a 400-question golden set covering contradictory versions, deletion, injection and absent evidence, replayed nightly.
- Roll out opt-in at 1, 5 and 15 percent only when gates hold, and roll back on evidence mismatch.
Environments and release
Staging rebuilds the full index and simulates stale policies, rate limits, provider errors and missing citations. Production uses a feature flag with a per-property kill switch, a revertible index alias, a runbook and an on-call owner.
Failure drill
A delisted property's content persists in the index. A tombstone event drives a deletion queue, a daily audit query finds dangling chunks, and the affected cohort drops to abstain-only until the replay completes.
Scale and targets
Modeled scale
- 45,000 opt-in properties and 800K to 1.1M searchable chunks
- 8,000 answer requests per day, roughly 40 QPS modeled peak
- Index backfill at 15K documents per hour
Acceptance targets
- Retrieval Recall@5 of at least 90% on held-out questions
- Factual support of at least 94% on annotated low-risk answers
- Wrong-policy answers under 0.5% in an adversarial suite
- p95 under 2.8 s and under $0.025 per answer at illustrative pricing
- Deletion propagation under 10 minutes
The trade-off I would defend
Strict abstention answers fewer questions, and a wrong pet fee costs more trust than a missing answer. Rent and slots stay on first-party APIs even though one retrieval path would be simpler.
