chroma
chroma copied to clipboard
[bugfix] raises NotEnoughElementsException complaining n_results is greater than total number of elements
Description of changes
- Improvements & Bug fixes
- added Check Number of requested results before calling knn_query.
- n_result <= max_element
- n_result > 0
- collection.query() returns all elements if n_results is greater than the total number of elements in the collection.
- added Check Number of requested results before calling knn_query.
Documentation Changes
Bugfix, no doc change required.
cc @HammadB
We need to remove the 'test_number_of_elements_validation_query' test because it has become irrelevant after resolving issue #301. @HammadB
#537 addresses the bookkeeping of delete count, once we land that I can merge that in and move this forward.