Skip to content

[Bug]: when collection.count()>1000, collection.query can`t query correctly, it always returns last one #5814

@kefuzheng

Description

@kefuzheng

What happened?

When collection.count() > 1000, collection.query({queryTexts: [question], nResults: 7}), it always returns last one data.
When collection.count() < 1000, it works well, it can return seven relevant data.
Is this a bug? Or do I need to change any settings?
I start chroma sever with command 'chroma run --path <chromadb_data> --port $CHROMA_PORT'

Versions

Chroma 1.0.0
Python 3.13.0rc1
OS: NAME="Red Hat Enterprise Linux"
VERSION="8.10 (Ootpa)"

Relevant log output

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions