
    i                     p    d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
mZ ddlm
ZmZmZ dd	lmZ g d
Zy)a  
Connecting to Pinecone with GRPC

The `pinecone.grpc` submodule provides an alternative version of the Pinecone
client that uses gRPC instead of HTTP for data operations. This provides a
significant performance boost for data operations.

### Installing the gRPC client

You must install extra dependencies in order to install the GRPC client.

#### Installing with pip

```bash
# Install the latest version
pip3 install pinecone[grpc]

# Install a specific version
pip3 install "pinecone[grpc]"==7.0.2
```

#### Installing with poetry

```bash
# Install the latest version
poetry add pinecone --extras grpc

# Install a specific version
poetry add pinecone==7.0.2 --extras grpc
```

### Using the gRPC client

```python
import os
from pinecone.grpc import PineconeGRPC

client = PineconeGRPC(api_key=os.environ.get("PINECONE_API_KEY"))

# From this point on, usage is identical to the HTTP client.
index = client.Index(host=os.environ("PINECONE_INDEX_HOST"))
index.query(vector=[...], top_k=10)
```

   )	GRPCIndex)PineconeGRPC)GRPCClientConfig)PineconeGrpcFuture    )VectorSparseValues)r   r	   DeleteResponse)ListNamespacesResponse)
r   r   GRPCDeleteResponser   
GRPCVectorGRPCSparseValuesr   r	   r   r   N)__doc__
index_grpcr   pineconer   configr   futurer   pinecone.db_data.dataclassesr   r	   -pinecone.core.grpc.protos.db_data_2025_04_pb2r   r   r
   r   $pinecone.core.openapi.db_data.modelsr   __all__     h/var/www/catia.catastroantioquia-mas.com/valormas/lib/python3.12/site-packages/pinecone/grpc/__init__.py<module>r      s3   ,\ " " $ & =  Hr   