---
title: "pynndescent 0.8.0 Breaking Changes on PyPI | Since.dev"
description: "What each pynndescent release removed, renamed or changed: 23 breaking changes in 1 version on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/pynndescent
last_updated: 2026-12-04
---

# 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

Latest version `0.8.0`, released December 1, 2026. [Source repository](https://github.com/lmcinnes/pynndescent)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

## pynndescent 0.8.0 breaking changes

pynndescent 0.8.0, released December 1, 2026: 23 breaking changes.

- **Removed** `pynndescent.search.four_distances`  

pynndescent.search.four_distances was removed in pynndescent 0.8.0 [pypi.org](https://pypi.org/project/pynndescent/0.8.0/)
- **Behavior changed**  

Search results from proxy_inner_product are now ordered by inner product, which can change the order of returned neighbors. [github.com](https://github.com/lmcinnes/pynndescent/releases/tag/release-0.8.0)
- **Behavior changed**  

Dense cosine, dot and Hellinger distances are now clamped at 0, so results that were previously negative now return 0. [github.com](https://github.com/lmcinnes/pynndescent/releases/tag/release-0.8.0)
- **Behavior changed**  

In proxy_inner_product, a zero inner product is now treated as maximally distant, which changes the resulting distance values. [github.com](https://github.com/lmcinnes/pynndescent/releases/tag/release-0.8.0)
- **Behavior changed**  

Searches using the angular metric now return distances rather than similarities, so code that expects similarity values must be updated. [github.com](https://github.com/lmcinnes/pynndescent/releases/tag/release-0.8.0)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)
- **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](https://pypi.org/project/pynndescent/0.8.0/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
