-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[Question]: The "score" in a NodeWithScore #16611
Comments
The "score" parameter within the |
This is my code, and there are score returned, what does it mean? |
The score returned in your code signifies the relevance or confidence level of the retrieved result. It indicates how well the retrieved content matches the query. The nodes are sorted by their similarity scores in descending order, meaning the nodes with the highest scores are considered the most relevant to your query [1][2]. |
@dosu, So is it the "score" cosine similarity? |
Yes, the "score" typically represents the cosine similarity between the query and the retrieved nodes. This score measures the cosine of the angle between two non-zero vectors, indicating how similar they are. A higher score means a higher similarity, suggesting that the node is more relevant to the query. |
These are my codes, the metric I use is cosine distance for chromadb's collection. So what's the meaning of the "score"? |
In your code, when using cosine distance for ChromaDB's collection, the "score" represents a similarity score calculated as |
@dosu |
The similarity score is calculated as |
Question Validation
Question
What is the meaning of the "score" parameter within the NodeWithScore object?
The text was updated successfully, but these errors were encountered: