Understanding Pinecone Architecture

1. Understanding Serverless Architecture

PropertyBehavior
ComputeAuto-scales with query traffic; pay-per-use
StorageDecoupled; pay per GB stored
Cold startPossible after long idle; first query latency higher
CapacityVirtually unlimited (billions of vectors)
Best forVariable workloads, RAG apps, dev/test, multi-tenant

2. Understanding Pod Architecture

PropertyBehavior
ComputeDedicated pods; fixed cost regardless of traffic
Pod typess1 (storage), p1 (perf), p2 (high QPS)
Sizesx1, x2, x4, x8
Cold startNone; always warm
Best forPredictable high QPS, low-latency SLAs
Note: Pinecone is migrating most users to Serverless. New pod-based indexes may not be available in all regions.

3. Understanding Index Structure

Project
 └── Index (e.g., "products-1536")
      ├── Namespace: "tenant-a"
      │    ├── Vector: id=v1, values=[...], metadata={...}
      │    └── Vector: id=v2, ...
      ├── Namespace: "tenant-b"
      └── Namespace: "" (default)
      
ComponentRole
IndexTop-level vector container; fixed dim/metric
NamespaceLogical partition within index
Vectorid, values, metadata, optional sparseValues

4. Understanding Namespaces

PropertyDescription
PurposeLogical partitioning within an index
IsolationQueries scoped to one namespace at a time
CreationImplicit on first upsert
Limit10K+ namespaces per index (serverless)
CostNo extra cost; storage based on total vectors

5. Understanding Collections

PropertyDescription
DefinitionStatic snapshot of a pod-based index
UseBackup, clone, migrate between pod types
CostStorage-only (cheaper than active pods)
ServerlessNot supported (use backups instead)

6. Understanding Vector Dimensions

ModelDimensionsUse Case
OpenAI text-embedding-3-small1536General RAG, cost-effective
OpenAI text-embedding-3-large3072High-accuracy retrieval
Cohere embed-v31024Multilingual
SentenceTransformers MiniLM384Edge / low-cost
Pinecone multilingual-e5-large1024Inference API
Max allowed20000Hard limit

7. Understanding Distance Metrics

MetricRangeBest For
cosine[-1, 1] (1=identical)Text embeddings
euclidean[0, ∞) (0=identical)Spatial, image
dotproduct(-∞, ∞)Hybrid, recommenders

8. Understanding Metadata Indexing

PropertyDescription
DefaultAll metadata fields indexed
Selective indexingConfigurable at index creation (pod-based)
Indexed typesString, number, boolean, list of strings
Max size40KB per vector

9. Understanding Sparse vs Dense Vectors

Dense Vectors

  • Fixed dimension, mostly non-zero
  • From neural embeddings (OpenAI, Cohere)
  • Captures semantic meaning
  • Best for: similarity search

Sparse Vectors

  • High dim (10K+), mostly zero
  • From BM25, SPLADE, TF-IDF
  • Captures keyword / term importance
  • Best for: exact match, lexical search
AttributeDenseSparse
Storage formatArray of floats{indices: [...], values: [...]}
Metric requiredAnydotproduct only

10. Understanding Hybrid Search Capabilities

Index TypeHybrid Support
Serverless (dotproduct)Yes — dense + sparse
Pod-based (dotproduct)Yes — dense + sparse
Cosine/Euclidean indexesNo — dense only