pynndescent breaking changes
pynndescent 0.8.0 (December 1, 2026) is its newest release with breaking changes, 23 of them. The first: Removed pynndescent.search.four_distances. Every breaking API change we have recorded in pynndescent on PyPI: 23 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.8.0, released December 1, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
pynndescent 0.8.0 breaking changes
- Removed
pynndescent.search.four_distances
pynndescent.search.four_distances was removed in pynndescent 0.8.0 pypi.org - Behavior changed
Search results from proxy_inner_product are now ordered by inner product, which can change the order of returned neighbors. github.com - Behavior changed
Dense cosine, dot and Hellinger distances are now clamped at 0, so results that were previously negative now return 0. github.com - Behavior changed
In proxy_inner_product, a zero inner product is now treated as maximally distant, which changes the resulting distance values. github.com - Behavior changed
Searches using the angular metric now return distances rather than similarities, so code that expects similarity values must be updated. github.com - Signature changed
pynndescent.hybrid_forest.make_hybrid_leaf_array
Was def make_hybrid_leaf_array(data, n_trees, leaf_size, seed, angular=False, max_depth=200, local_bytes=LOCAL_SUBTREE_BYTES); now def make_hybrid_leaf_array(data, n_trees, leaf_size, seed, angular=False, max_depth=200... pypi.org - Signature changed
pynndescent.NNDescent.__init__
Was def __init__(self, data, metric='euclidean', metric_kwds=None, n_neighbors=30, n_trees=None, leaf_size=None, pruning_degree_multiplier=1.5, diversify_prob=1.0, diversify_method='standard', degree_prune_aggressiveness=1.0... pypi.org - Signature changed
pynndescent.NNDescent.prepare
Was def prepare(self, compile_search=False); now def prepare(self, compile_search=False, query_sample=None, query_neighbors=None). pypi.org - Signature changed
pynndescent.NNDescent.update
Was def update(self, xs_fresh=None, xs_updated=None, updated_indices=None); now def update(self, xs_fresh=None, xs_updated=None, updated_indices=None, query_sample=None, query_neighbors=None). pypi.org - Signature changed
pynndescent.pynndescent_.build_candidates_owner
Was def build_candidates_owner(current_graph, max_candidates, rng_state, n_threads, new_candidate_indices, new_candidate_priority, old_candidate_indices, old_candidate_priority, active, reverse_dst, reverse_src, bucket_bounds); now def... pypi.org - Signature changed
pynndescent.pynndescent_.diversify
Was def diversify(indices, distances, data, dist, rng_state, prune_probability=1.0); now def diversify(indices, distances, data, dist, rng_state, prune_probability=1.0, relax=1.0). pypi.org - Signature changed
pynndescent.pynndescent_.diversify_alternative_dot
Was def diversify_alternative_dot(indices, distances, data, rng_state, prune_probability); now def diversify_alternative_dot(indices, distances, data, rng_state, prune_probability, relax=1.0). pypi.org - Signature changed
pynndescent.pynndescent_.diversify_squared_euclidean
Was def diversify_squared_euclidean(indices, distances, data, rng_state, prune_probability); now def diversify_squared_euclidean(indices, distances, data, rng_state, prune_probability, relax=1.0). pypi.org - Signature changed
pynndescent.pynndescent_.make_cached_search_function
Was def make_cached_search_function(data, indptr, indices, search_forest, tree_leaf_budget, n_neighbors, min_distance, normalize_query, tree_normalize_query, kernel, parallel); now def make_cached_search_function(data, indptr, indices... pypi.org - Signature changed
pynndescent.pynndescent_.make_hybrid_leaf_array
Was def make_hybrid_leaf_array(data, n_trees, leaf_size, seed, angular=False, max_depth=200, local_bytes=LOCAL_SUBTREE_BYTES); now def make_hybrid_leaf_array(data, n_trees, leaf_size, seed, angular=False, max_depth=200... pypi.org - Signature changed
pynndescent.pynndescent_.nn_descent_internal
Was def nn_descent_internal(current_graph, data, n_neighbors, rng_state, max_candidates=50, dist=pynnd_dist.euclidean, n_iters=10, delta=0.001, verbose=False, kernel=0); now def nn_descent_internal(current_graph, data, n_neighbors... pypi.org - Signature changed
pynndescent.pynndescent_.NNDescent.__init__
Was def __init__(self, data, metric='euclidean', metric_kwds=None, n_neighbors=30, n_trees=None, leaf_size=None, pruning_degree_multiplier=1.5, diversify_prob=1.0, diversify_method='standard', degree_prune_aggressiveness=1.0... pypi.org - Signature changed
pynndescent.pynndescent_.NNDescent.prepare
Was def prepare(self, compile_search=False); now def prepare(self, compile_search=False, query_sample=None, query_neighbors=None). pypi.org - Signature changed
pynndescent.pynndescent_.NNDescent.update
Was def update(self, xs_fresh=None, xs_updated=None, updated_indices=None); now def update(self, xs_fresh=None, xs_updated=None, updated_indices=None, query_sample=None, query_neighbors=None). pypi.org - Signature changed
pynndescent.pynndescent_.PyNNDescentTransformer.__init__
Was def __init__(self, n_neighbors=30, metric='euclidean', metric_kwds=None, n_trees=None, leaf_size=None, search_epsilon=0.1, pruning_degree_multiplier=1.5, diversify_prob=1.0, n_search_trees=None, tree_init=True, random_state=None... pypi.org - Signature changed
pynndescent.PyNNDescentTransformer.__init__
Was def __init__(self, n_neighbors=30, metric='euclidean', metric_kwds=None, n_trees=None, leaf_size=None, search_epsilon=0.1, pruning_degree_multiplier=1.5, diversify_prob=1.0, n_search_trees=None, tree_init=True, random_state=None... pypi.org - Signature changed
pynndescent.search.make_cached_search_function
Was def make_cached_search_function(data, indptr, indices, search_forest, tree_leaf_budget, n_neighbors, min_distance, normalize_query, tree_normalize_query, kernel, parallel); now def make_cached_search_function(data, indptr, indices... pypi.org - Signature changed
pynndescent.utils.build_candidates_owner
Was def build_candidates_owner(current_graph, max_candidates, rng_state, n_threads, new_candidate_indices, new_candidate_priority, old_candidate_indices, old_candidate_priority, active, reverse_dst, reverse_src, bucket_bounds); now def... pypi.org
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.