ssl_verify parameter for IndexAsyncio does not work against Pinecone Local

When connecting to a local Pinecone instance (Pinecone Local on the local server, port 5081) using pc.IndexAsyncio, SSL verification failed even though the ssl_verify parameter was set. The typical pattern of passing the host from pc.describe_index(index_name).host broke against Pinecone Local. That is because describe_index returns a host without a URL scheme, and any host without a scheme is assumed to be https, which Pinecone Local cannot serve.

The root cause is that Pinecone Local does not support TLS/SSL at all. Verified workaround, confirmed by the reporter: pass the host explicitly with an http scheme instead of relying on the scheme-less host from describe_index, pointing at your local Pinecone instance on port 5081. Maintainer mcaddy gave this answer on the thread. Note that a separate community PR proposed a code fix for the scheme handling, but the http host workaround is confirmed working.

Source: https://github.com/pinecone-io/python-sdk/issues/465