Why this work, at that time
Zillow announced expanded natural-language search in September 2024. This case models a small, separate Rentals FAQ feature and assumes no access to Zillow's internal AI search team or model stack.
The problem
Amenity, pet, parking and policy details are scattered across listing fields, and hand-built FAQs cannot handle paraphrases. Live price, availability and tour slots had to stay on deterministic APIs. Out of scope: autonomous applications, affordability advice, legal interpretation and any write action.
The team and my part
Modeled ownership: the model-proxy endpoint, source lookup, safe output contract, instrumentation, error-path tests and part of the React panel. A technical lead owns design review, provider access and privacy policy. Frontend, data and QA engineers own the component, listing projections and golden questions.
Data and index design
listing_policy_snapshot(property_id, snapshot_version, public_field_key, field_text, source_uri, retrieved_at, expires_at); answer_request_log(request_id, pseudonymous_session, property_id, intent, model_version, evidence_version, latency_ms, outcome_code, trace_id); feedback_event(request_id, rating, reason_code, timestamp).
API and event contract
POST /v1/rentals/{propertyId}/questions with question, sessionId and locale. 200 returns answer, citations (field, sourceUrl, snapshotVersion), status and requestId. 422 unsupported_intent. 503 assistance_unavailable with a fallbackUrl.
Core logic
The service passes only relevant listing snippets and requires a JSON answer with evidence ids and an abstain flag. A server-side validator rejects unsupported claims and outgoing URLs. Citations link to canonical listing URLs, never to model-generated ones.
Implementation sequence
- Agree three supported intents, inventory approved public fields and define privacy, safety and accessibility checks.
- Build the policy projection keyed by property id, with source version, age and explicit denial for non-public fields.
- Add the model adapter with a timeout, a rate budget and failover to deterministic facts.
- Add the attribution validator and a short TTL cache for public facts only, never for user questions.
- Ship React source cards, a streaming skeleton, cancel and keyboard navigation to an opt-in internal cohort.
- Measure usefulness, latency and wrong-claim rate on an annotated set, then decide whether retrieval is justified.
Environments and release
Local work uses mocked APIs and synthetic listings. Staging runs contract and adversarial tests. The pilot ships to an opt-in cohort behind a rollback flag that leaves the listing page untouched.
Failure drill
The model invents a pet-fee amount. Fee-related free-form answers are disabled by flag, prompts and snapshots replay through the golden set, and fees then come only from a structured source. A regression case keeps it from returning.
Scale and targets
Modeled scale
- 25,000 property pages in the pilot
- 350 conversations and 1,200 turns per day, 3 to 8 peak turns per second under load test
- About 1,200 input and 220 output tokens per answer
Acceptance targets
- 100% of non-abstained answers link to an approved evidence field
- Unsupported answers under 2% on about 300 curated questions
- p95 under 3.5 s end to end and availability above 99.5%
- Zero raw free text with detected PII in sampled telemetry
The trade-off I would defend
No vector store in the pilot. Deterministic lookups of approved fields test usefulness cheaply, and retrieval gets added only if measured errors justify it.
