Skip to content

ChromaDB scores trashold works invalid if simularity serach non cosine #1166

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

Open
KaymeKaydex opened this issue Feb 20, 2025 · 3 comments
Open

Comments

@KaymeKaydex
Copy link

KaymeKaydex commented Feb 20, 2025

there is example for L2 search scores
Image

@KaymeKaydex KaymeKaydex changed the title ChromaDB scores trashold works invalid ChromaDB scores trashold works invalid if simularity serach non cosine Feb 20, 2025
@hasitpbhatt
Copy link

Could you please explain the specific scoring method you're using in more detail? I'm not familiar with scores beyond those normalized to a 0-1 scale, so I'd appreciate a bit more context to understand your request.

@KaymeKaydex
Copy link
Author

KaymeKaydex commented Feb 22, 2025

Could you please explain the specific scoring method you're using in more detail? I'm not familiar with scores beyond those normalized to a 0-1 scale, so I'd appreciate a bit more context to understand your request.

I'm using L2 distance for chroma with chroma version from README.
So, normalisation process of course can help me, but i don't where I can enable it. Cause I can't use it without chroma max distance info.

@nikolayk812
Copy link

I can confirm that I have observed the same issue with L2. Actually, L2 is default and it does not product -1 to 1 results.
Changing to COSINE fixed the issue for me, but this does not take into consideration the fact that a scoring function might produce results outside of [-1,1] range.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants