Azure / Azure/azure-search-vector-samples

Vector search gives SSL WRONG VERSION Number error when used within corporate firewall

Open
#240 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
910
Forks
377
PR merge metrics
No merged PRs in 30d

Description

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']}")

``

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Python SearchClient snippet in the issue and compare its connection settings between the home and corporate networks. Reproduce the SSL WRONG_VERSION_NUMBER error in the corporate environment; done would mean identifying a supported configuration or documenting that the issue requires corporate proxy or network changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python
Domain
cloud, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.