docs: fix duplicate words in HNSW comments

Signed-off-by: Rohan5commit <181558744+Rohan5commit@users.noreply.github.com>
This commit is contained in:
Rohan Santhosh 2026-02-28 13:31:17 +08:00
parent 33319b80a7
commit 80f00f0660

View file

@ -1038,7 +1038,7 @@ void hnsw_add_node(HNSW *index, hnswNode *node) {
* can be accepted or not based on its associated value. In this case
* a callback 'filter_callback' should be passed, together with a maximum
* effort for the search (number of candidates to evaluate), since even
* with a a low "EF" value we risk that there are too few nodes that satisfy
* with a low "EF" value we risk that there are too few nodes that satisfy
* the provided filter, and we could trigger a full scan. */
pqueue *search_layer_with_filter(
HNSW *index, hnswNode *query, hnswNode *entry_point,
@ -2425,7 +2425,7 @@ hnswNode *hnsw_random_node(HNSW *index, int slot) {
* many levels it has, its ID, the list of neighbors for each level (as node
* IDs), and so forth.
*
* You need to to save your own node->value in some way as well, but it already
* You need to save your own node->value in some way as well, but it already
* belongs to the user of the API, since, for this library, it's just a pointer,
* so the user should know how to serialized its private data.
*
@ -3296,4 +3296,4 @@ int hnsw_ground_truth_with_filter
pq_free(results);
hnsw_free_tmp_node(&query, query_vector);
return found;
}
}