Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Reduce logging levels to debug for implementation details #2834

Open
jlowin opened this issue Sep 22, 2024 · 0 comments
Open

[Bug]: Reduce logging levels to debug for implementation details #2834

jlowin opened this issue Sep 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jlowin
Copy link

jlowin commented Sep 22, 2024

What happened?

If you query a collection that has fewer items than the number of items you requested, you get a WARNING-level log, which is kind of scary for the behavior:

10:01:26.794 | WARNING | chromadb.segment.impl.vector.local_hnsw - Number of requested results 10 is greater than number of elements in index 1, updating n_results = 1

The log is defined here. Usually, a WARNING log means "Something unexpected happened, and things don't seem to be broken, but they might be." (e.g. not INFO but not yet an ERROR).

I recognize this is a bit subjective, which is why I'm opening an issue rather than a PR, but to me this is a debug log at best. As a user, the fact that I'm only going to get one result from a collection that contains one item is hardly surprising and not something I expected to be "warned" about.

Versions

Chroma 0.5.7

Relevant log output

No response

@jlowin jlowin added the bug Something isn't working label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant