rerank_bridge_boost
rerank_bridge_boost(sims, candidate_indices, bridge_scores, top_k, alpha=0.3)Re-rank by blending similarity with normalized bridge score.
score = (1-alpha) * sim_normalized + alpha * bridge_normalized
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| sims | 1-D array of similarity scores for each candidate. | required | |
| candidate_indices | 1-D array of candidate point indices. | required | |
| bridge_scores | Array of bridge scores indexed by point index. | required | |
| top_k | Number of results to return. | required | |
| alpha | Weight for bridge score (0 = pure similarity). | 0.3 |
Returns
| Name | Type | Description |
|---|---|---|
| np.ndarray of selected point indices. |