Problem & constraints
A buyer comparing cars needs a small canvas that shows why three cars made the cut, what trade-off each one carries, and which price a dealer has committed to. The system had to keep working when the embedding path was missing, slow, or unhelpful.
The dealer side changed the product shape. A locked price had to become a lead, the lead had to reach a dealer inbox, and the bid had to return to the same car on the buyer canvas. A generated answer by itself would not prove anything.
System architecture
The wizard stores three bindings. filter_bracket maps the budget band onto max_price. filter_value maps body type onto category. query_token turns the buyer constraint into search text instead of a hard filter. That choice matters: a constraint such as “low running cost” can rank evidence without discarding every car that lacks the exact phrase.
Retrieval is hybrid. Hard filters, full-text search, and pgvector similarity are fused with reciprocal rank fusion at k=60, with a small intent boost. Keyword search and filters still produce a ranked catalog when the embedding is skipped.
Gemini gemini-flash-latest writes the verdict with thinkingBudget set to zero. If the key is missing, the call fails, or the deadline hits, the system composes the verdict from ranked cars and still returns a usable response. The fallback is visible in the platform view. It is part of the product contract.
| Surface | Responsibility |
|---|---|
| Buyer wizard | Captures budget, body type, constraint |
| Decision canvas | Shows ranked cars and verdict state |
| Dealer inbox | Receives locked-price leads and submits bids |
| Platform view | Exposes bindings, retrieval legs, and verdict provenance |
Evaluation & guardrails
The main check is whether the wizard bindings explain the result. The platform view shows which bindings fired, which retrieval legs contributed, and whether the verdict was live, cached, or composed by fallback. This gives a reviewer something stronger than a persuasive answer: a trace they can inspect.
End-to-end checks cover the loop a founder would demo. Generate a canvas, lock a price, open the dealer inbox, submit the bid, and confirm that the bid appears on the buyer canvas.
Production outcomes
The system ran as a private car-concierge demo with one public product surface during the build. The valuable outcome was the operating loop: buyer intent became retrieval constraints, retrieval became an explainable shortlist, and dealer action returned to the buyer view.
The next hardening step is measurement against real dealer response times. The demo proves the loop. It does not claim close rates, gross merchandise value, or buyer conversion.