Find answers from the community

Updated last year

Logan M tried the

At a glance

The community member @Logan M tried using the SemanticSimilarityEvaluator, but encountered an SSLCertVerificationError - RetryError when running the code. They asked if anyone else has faced this issue and if there is a synchronous way to achieve this in llama-index.

In the comments, other community members suggested that the SemanticSimilarityEvaluator works by finding semantic similarity between texts and does not require an API or SSL. They speculated that the issue might be related to the OpenAI embeddings used by the evaluator, and suggested trying the code again or using a different embedding model like BAAI/bge-base-en-v1.5 instead of the mpnet V2 model.

@Logan M tried the SemanticSimilarityEvaluator.
The code
result = await evaluator.aevaluate( response=student_answer, reference=correct_answer, )
is throwing SSLCertVerificationError - RetryError: RetryError[<Future at 0x2852955d0 state=finished raised APIConnectionError>] every time. What to do!? Anybody else here faced this before?
Also is there no synchronous way to achieve this in llama-index?
W
L
4 comments
SemanticSimilarityEvaluator works by finding semantic similarity in between the texts. I dont think it requires API or SSL in any way 🧐
It requires embeddings I think

Maybe try it again? SSL error is very weird, maybe OpenAIs certs expired?
Oh OpenAI embedding, right gotcha!

@Logan M Is sentence transformer mpnet V2 embedding model on par with OpenAI embedding model?

What do you think?
mpnet is pretty bad. I would use BAAI/bge-base-en-v1.5 or similar πŸ‘
Add a reply
Sign up and join the conversation on Discord