BeginnerVector Database8 min read

Connect Pinecone to Gateco

Connect Pinecone (serverless and pod-based) to Gateco for policy-aware vector retrieval. Covers API key setup and index configuration.

Last updated: May 21, 2026

Prerequisites

  • A Pinecone account with at least one index
  • Pinecone API key with read/write access

Overview — 4 steps

  1. 1Create a Pinecone index
  2. 2Get your API key
  3. 3Note your index name and environment
  4. 4Add the connector in Gateco

Pinecone is a fully managed vector database purpose-built for semantic search. Gateco connects to Pinecone as a Tier 1 connector, supporting full document ingestion, retroactive registration, and RAG access control — adding identity-aware retrieval and vector database RBAC on top of your Pinecone indexes. Gateco's policy layer complements Pinecone metadata filtering and namespace isolation by enforcing identity-based access at the retrieval layer.

Step 1 — Create a Pinecone index

If you already have an index, skip to Step 2.

  1. Log in to app.pinecone.io.
  2. Click Create index.
  3. Name: any name meaningful to your project (e.g. production-docs).
  4. Dimensions: must match your embedding model (e.g. 1536 for text-embedding-3-small).
  5. Metric: cosine (recommended for semantic search).
  6. Select Serverless (default) or pod-based depending on your plan.
  7. Click Create index.

Step 2 — Get your API key

  1. In the Pinecone console, navigate to API Keys.
  2. Copy your default API key, or click Create API key to create one dedicated to Gateco.

Step 3 — Note your index host

  1. In the Pinecone console, click into your index.
  2. On the index detail page, copy the Host URL (e.g. production-docs-abc123.svc.us-east-1-aws.pinecone.io).

Step 4 — Add the connector in Gateco

  1. Navigate to Connectors → Add connector → Pinecone.
  2. Enter your API key and index name.
  3. Click Test connection. Gateco will display the index stats (dimension, vector count).
  4. Click Save.
FieldExampleDescription
api_keypc-xxxxxxxxxxxxxxxxYour Pinecone API key
index_nameproduction-docsThe index name (not the host URL)

Ingest and retrieve

python
from gateco_sdk import GatecoClient

client = GatecoClient(api_key="gck_live_...")

# Ingest a document
client.ingest.document(
    connector_id="your-connector-id",
    resource_id="doc-001",
    content="Quarterly revenue report Q4 2025",
    embedding=[0.1, 0.2, ...],
    metadata={"classification": "confidential", "department": "finance"},
)

# Retrieve with policy enforcement
result = client.retrievals.execute(
    query="What was Q4 revenue?",
    principal_id="user-alice",
    connector_id="your-connector-id",
    search_mode="vector",
)
print(f"Allowed: {len(result.allowed_chunks)}, Denied: {result.denied_count}")

Troubleshooting

ErrorCauseFix
UNAUTHENTICATEDInvalid API keyVerify the API key in Pinecone console → API Keys
NOT_FOUND: index not foundWrong index nameUse the index name (not the host URL) in the connector config
Dimension mismatchIndex dimension does not match embedding sizeVerify your embedding model output size matches the index dimension

Frequently asked questions

Does Gateco work with both serverless and pod-based Pinecone indexes?

Yes. Gateco supports both Pinecone serverless indexes (available on all Pinecone plans including Starter) and legacy pod-based indexes. The connector configuration is the same for both — enter your API key and index name.

Does Gateco need to be in the same region as my Pinecone index?

No. Gateco connects to Pinecone over HTTPS from any region. There may be a small latency penalty for cross-region queries, but Pinecone handles routing through its global control plane. For latency-sensitive production workloads, consider co-locating your Gateco backend and Pinecone index in the same cloud region.

Can I connect Gateco to an existing Pinecone index that already has vectors?

Yes. Gateco supports retroactive registration for Pinecone — it lists your existing vector IDs and registers them as gated resources, enabling RAG access control on vectors that were ingested before Gateco was added. Go to Connectors → your Pinecone connector → Retroactive registration to scan and register existing vectors without re-ingesting them.

Ready to add policy-aware retrieval?

Connect your Pinecone setup to Gateco in under 5 minutes.