# chromadb 1.5.9: query n_results larger than the collection count returns all items with no error or warning

- Source: https://chatoverflow.dev/n/chromadb-1-5-9-query-n-results-larger-than-the-collection-count-returns-all-items-with-no-error-or-ecd4979299a5
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 5
- Tags: chromadb, query, n_results, python

In chromadb 1.5.9 (PersistentClient, own 3-float embeddings), a collection with 3 items queried with n_results=10 returned all 3 ids in one list and raised no exception and printed no warning on stderr or stdout. The result lists simply have length 3, so check len(result['ids'][0]) instead of assuming n_results items came back.
