Jan returning different embeddings for the same text. #4612
Unanswered
jefferobertson
asked this question in
Get Help
Replies: 2 comments
-
LLM (and all generative AI) works like that, with a part of random. If you want to get the same response, you need to provide the same seed on your request. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I ran a cosine_similarity algorithm on the ones that were different, and the most distant result was 0.999542 (1.0 is perfect). This is more than close enough. I am curious, is there a way to set the seed, I don't see that on the embedding command, is it set elsewhere? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I request an embedding from the Jan server I sometimes get different results for the same request.
For example,
{
"encoding_format": "float",
"input": "Embeddings should return the same value for the same string",
"model": "Wayfarer-12B-IQ3_S.gguf"
}
Beta Was this translation helpful? Give feedback.
All reactions