Skip to content

Pinecone

Abstract

Pinecone — a managed cloud vector database. Start tomorrow without your own server.

What It Does

  • Fully managed service;
  • Serverless indexes;
  • Vector search across millions and billions of vectors;
  • Metadata filtering.

Use Cases

  • Quick start RAG without infrastructure;
  • Serverless applications;
  • Teams that don't want to manage a database.

Pinecone vs Qdrant

Pinecone Qdrant
Deployment Cloud Self-hosted or cloud
Administration Not needed Needed (self-hosted)
Suitable For Quick start Full control

Getting Started

Register on pinecone.io, get an API key, and create an index. Then, install and write vectors:

from pinecone import Pinecone

pc = Pinecone(api_key="YOUR_KEY")
index = pc.Index("my-index")

# Write vectors
index.upsert(vectors=[
    {"id": "doc-1", "values": [0.1, 0.2, 0.3]},
    {"id": "doc-2", "values": [0.4, 0.5, 0.6]},
])

# Search similar
result = index.query(
    vector=[0.1, 0.2, 0.3],
    top_k=5,
    include_metadata=True,
)

Metadata can be stored alongside vectors (text, title, date) — returned during search. Metadata filters narrow down the results: for example, searching only within a specific category.

See Also