Is rendering the relevance as percentage the right choice? #878
Answered
by
dluc
marcominerva
asked this question in
1. Q&A
-
In the So, the relevance is formatted as a percentage. I'm wondering if it is correct, given that its value can significantly change between models or even model versions. |
Beta Was this translation helpful? Give feedback.
Answered by
dluc
Nov 4, 2024
Replies: 1 comment 2 replies
-
The value is in most cases a cosine similarity, and it is used to sort facts from more similar to less similar. It is injected in the prompt to give a hint to the model about what is more relevant. The actual value is not important. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The reason why I went with % is that it carries more semantic meaning compared to a number, considering also that LLMs are trained on human content. For instance, saying "Its' 100% relevant" is more common (and meaningful) than saying "It's 1.0 relevant".
If one wants to customize the prompt, my suggestion would be to run tests with something like Ragas, DeepEval, Deepchecks, ChainForge, LLM-rAG-eval, etc