Proxy servers with Pinecone?

A customer question: My team is looking into using Pinecone as a vector database. However, your python code doesn’t allow for passing in a proxy server. Would you be willing to add in the ability to pass in a proxy as an argument within pinecone.init()?

1 Like

Yes, we can pass a proxy via pinecone.init(). Since our REST client is based on an OpenAPI spec, you can pass your own OpenAPI configuration and modify defaults, including proxies. Here is an example to use an insecure local proxy running on my system:

from pinecone.core.client.configuration import Configuration as OpenApiConfiguration

openapi_config = OpenApiConfiguration.get_default_copy()
# Here I am trying to connect to an insecure local proxy at, 
#however you can keep the verify_ssl=True if you are using a secure connection
openapi_config.verify_ssl = False
openapi_config.proxy = ""
index = pinecone.Index("test")

Note: This is only configurable for the REST client as of now, we will add similar support for gRPC soon.

1 Like