Skip to main content

Module merge

Module merge 

Source
Expand description

Query-time merge of main HNSW and delta result sets.

Filters tombstones from both lists, tags each result with its origin, deduplicates by id (delta wins), and returns the top-k sorted ascending by distance.

Structs§

MergedResult
A single result in the merged candidate set.

Functions§

merge_results
Merge main and delta result lists into a single sorted top-k list.