Open dhaksr opened 4 weeks ago
Just to add more details, i suspect the problem is somehow the proxy setting in corporate network is interfering. Is there any way to say to the Azure APIs to pick the system setting for proxy?
Can you please check this issue and see if the suggestions help? https://github.com/Azure/azure-sdk-for-python/issues/33607
If not, please file a follow-up issue in the azure-sdk-for-python repository
I am trying the integrated vectorization as python program. I am able to execute the vector search in my home network. But when I execute in corporate network, i get the SSL Wrong version number. NOTE that I already use "Connection_verify = FALSE" so that SSL check passes thru my corporate network.
The error I get
raise error azure.core.exceptions.ServiceRequestError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)
The code snippet is simple vector search `` query = "GIve brief summary of centrifugal fans. Which industry its used? Where all it is to be placed. List important steps of maintenance"
search_client = SearchClient(az_search_endpoint, az_search_index_name, credential=az_search_credential,connection_verify=SSL_Verify) vector_query = VectorizableTextQuery(text=query, k_nearest_neighbors=1, fields="vector", exhaustive=True)
results = search_client.search(
search_text=None,
vector_queries= [vector_query], select=["parent_id", "chunk_id", "chunk"], top=1, connection_verify = SSL_Verify )
print(results.get_count)
for result in results:
print(f"parent_id: {result['parent_id']}")
print(f"chunk_id: {result['chunk_id']}")
print(f"Score: {result['@search.score']}")
print(f"Content: {result['chunk']}")
``