Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesRAG & Vector DatabasesVector Stores: Pinecone, Qdrant, pgvector, Chroma, FAISS
Text cut into overlapping chunks, the top three lifted into resultsThe agent loop: reason, act, observeOne MCP connector linking files, Git and memory
Course

RAG & Vector Databases

Module 1 · Embeddings & Vector Search
01Embeddings and Similarity Metrics02Vector Stores: Pinecone, Qdrant, pgvector, Chroma, FAISS03Full Semantic Search: embed → upsert → query
Module 2 · Chunking & Preprocessing
04Chunking Strategies05Document Loaders: PDF, DOCX, HTML, Markdown, code06Preprocessing: deduplication, cleaning, metadata
Module 3 · Advanced Retrieval
07Hybrid Search: BM25 + dense, RRF08Reranking: cross-encoder and two-stage retrieval09Query Expansion: HyDE, multi-query, step-back
Module 4 · RAG Pipeline & Evaluation
10End-to-End RAG Pipeline11RAG Evaluation: RAGAS12Production RAG: streaming, citations, cache, monitoring
RAG & Vector Databases · Lesson 2

Vector Stores: Pinecone, Qdrant, pgvector, Chroma, FAISS

Comparing managed and self-hosted stores (Pinecone, Qdrant, pgvector, Weaviate, Milvus, Chroma, FAISS), managed RAG from OpenAI and Google, HNSW and IVF index types, running Qdrant in Docker and pgvector in Postgres, when to choose what.

30 min readUpdated Dec 2, 20264 questions in quizReady prompt included

Pinecone (managed)

import os
from pinecone import Pinecone

pc = Pinecone(api_key=os.environ["PINECONE_API_KEY"])
pc.indexes.create(
    name="docs",
    schema={"fields": {"embedding": {"type": "dense_vector", "dimension": 1536, "metric": "cosine"}}},
    deployment={"deployment_type": "managed", "cloud": "aws", "region": "us-east-1"},
)
index = pc.index("docs")
index.documents.upsert(
    namespace="kb",
    documents=[{"_id": "d1", "embedding": vec, "src": "faq"}],
)

This code is for the pinecone Python SDK 10.x. The old pc.create_index(..., spec=ServerlessSpec(...)) call is kept for compatibility: it creates a classic vector index that you write to with upsert(vectors=...). Use pc.indexes.create for new code.

Pros: zero infrastructure, auto-scale, a free Starter plan (2 GB). Cons: cost as you grow, data at the vendor, vendor lock-in.

The rest of this lesson opens after a free sign-up

Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.

Sign up freeOr a trial lesson, no sign-up →
In this lesson
Pinecone (managed)Qdrant (self-hosted in Docker)pgvector (Postgres extension)Weaviate, Milvus, ChromaDB and FAISSManaged RAG without your own databaseIndex typesHow to choosePracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Get started free