You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ x] I have checked the documentation and related resources and couldn't resolve my bug.
Describe the bug
Not able to use Embeddings based metrics as I'm getting the message above. I am using a custom Azure OpenAI endpoint and leverage langchain, which otherwise works perfectly well with my setup.
Error trace
The issue seems to be that it is trying to connect to the Azure OpenAI stardard endpoint (to which I don't have network access) rather than the one configured in the code:
OSError: Tunnel connection failed: 407 Proxy Authentication Required.
The above exception was the direct cause of the following exception:
urllib3.exceptions.ProxyError: ('Unable to connect to proxy', OSError('Tunnel connection failed: 407 Authentication Required'))
urlib3.exception.MaxRetryError: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ProxyError('Unable to connect to proxy', OSError('Tunnel connection failed: 407 Authentication Required'))
Additional context
Have tried wrapping the model in LangchainEmbeddingsWrapper and that still results in the 407 because it tries to access the default Azure OpenAI endpoint (openaipublic.blob.core.windows.net) rather than my custom one.
Have also tried passing the models per metric:
for metric in metrics:
metric.embeddings=embeddings_model
and that results in the error: 'AzureOpenAIEmbeddings' object has no attribute 'embed_texts'
The text was updated successfully, but these errors were encountered:
[ x] I have checked the documentation and related resources and couldn't resolve my bug.
Describe the bug
Not able to use Embeddings based metrics as I'm getting the message above. I am using a custom Azure OpenAI endpoint and leverage langchain, which otherwise works perfectly well with my setup.
I wonder if this might be a regression of:
#545
Ragas version: 0.1.7
Python version: 3.9.6
Code to Reproduce
Error trace
The issue seems to be that it is trying to connect to the Azure OpenAI stardard endpoint (to which I don't have network access) rather than the one configured in the code:
OSError: Tunnel connection failed: 407 Proxy Authentication Required.
The above exception was the direct cause of the following exception:
urllib3.exceptions.ProxyError: ('Unable to connect to proxy', OSError('Tunnel connection failed: 407 Authentication Required'))
urlib3.exception.MaxRetryError: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ProxyError('Unable to connect to proxy', OSError('Tunnel connection failed: 407 Authentication Required'))
Additional context
Have tried wrapping the model in
LangchainEmbeddingsWrapper
and that still results in the 407 because it tries to access the default Azure OpenAI endpoint (openaipublic.blob.core.windows.net) rather than my custom one.Have also tried passing the models per metric:
and that results in the error:
'AzureOpenAIEmbeddings' object has no attribute 'embed_texts'
The text was updated successfully, but these errors were encountered: