Ask the model again: per-row semantic re-rank from the review drawer.
The review drawer can now ask MiniLM to re-rank a single row's target candidates on demand. The Ask the model again section sits between the cached Other candidates list and the manual URL input. One click hits a synchronous backend endpoint that embeds just the source URL, scores it against the map's cached target embeddings, and returns the top five by cosine. The candidates render inline alongside the existing runner-ups and clicking one fills in the same pending-target slot the runner-up rows already use, so saving works the way it always did. The feature requires the per-map target embedding cache to be warm, so the user must have run Resolve with semantics on the whole map at least once. If the cache is empty the drawer shows an explicit message instead of silently building the index in the background.
- ·New Suggest semantically button in the review drawer's Ask the model again section. Disabled while a request is in flight and on archived maps. Picking a model-suggested candidate prefills the same pending-target slot the runner-up clicks use, so Save behaves identically
- ·New backend endpoint POST /v1/maps/{id}/sources/{source_id}/semantic-suggest. Synchronous: returns up to five candidates with target_id, target_url, and cosine, sorted by cosine descending. No threshold gating so the user sees the model's full top-5 even when scores are low
- ·Endpoint requires the per-map target embedding cache to be populated (running Resolve with semantics on the whole map at least once warms it). When the cache is empty the API returns 409 and the drawer shows: Run Resolve with semantics on the whole map first so MiniLM has its target index built
- ·API process loads the MiniLM session lazily on first call and shares it across requests via a singleton, so the model cold-start hit lands on the first user click rather than on every health check. The container image now bakes the model files in at build time so first-call latency does not include a HuggingFace download