Convert HNSW search results to receipt-bearing embedding hits using current
rows hydrated from EmbedDb.getSearchRowsByIds(). Persisted HNSW sidecar
previews are never an authority for this helper: stale, quarantined, or
missing labels must already be absent from the supplied EmbedDb lookup.
Cosine distance is converted back to similarity as 1 - distance.
Parameters
result: {distances:number[];labels:number[]}
Labels and cosine distances returned by the native HNSW index.
Convert HNSW search results to receipt-bearing embedding hits using current rows hydrated from
EmbedDb.getSearchRowsByIds(). Persisted HNSW sidecar previews are never an authority for this helper: stale, quarantined, or missing labels must already be absent from the supplied EmbedDb lookup. Cosine distance is converted back to similarity as1 - distance.