Course outline▾
Week 1 · The Foundations
- Day 1Demystifying AI — From Buzzword to Business Logic
- Day 2How Machines Actually Learn — Supervised, Unsupervised and Reinforcement Learning
- Day 3Inside Neural Networks — The Engine of Modern Deep Learning
- Day 4The AI Project Lifecycle — From Raw Data to Production Deployment
- Day 5The Math Behind the Magic — Why Linear Algebra and Probability Matter
- Day 6Data Preprocessing — Cleaning the Messy Reality of Enterprise Data
- Day 7Measuring Success — Understanding Accuracy, Precision, Recall and F1 Scores
Week 2 · Applied AI & APIs
- Day 8Introduction to LLMs & The Modern AI API Landscape
- Day 9Advanced Prompt Engineering — Few-Shot, Chain-of-Thought and Structured JSON
- Day 10Tokenization, Context Windows and Cost Optimization
- Day 11Embeddings and Vector Representations — How Machines Map Meaning
- Day 12Vector Databases — Storing and Searching Enterprise Knowledge
- Day 13Retrieval-Augmented Generation (RAG): Chatting with Proprietary DocumentsComing soon · 2026-10-13 · 7 PM IST
- Day 14RAG Evaluation & Hallucination GuardrailsComing soon · 2026-10-14 · 7 PM IST
Week 3 · Infrastructure & Hosting
- Day 15Introduction to AI Infrastructure: Hardware, Runtimes, and ComputeComing soon · 2026-10-15 · 7 PM IST
- Day 16Local Model Execution: Running Open-Weight LLMs Securely (Ollama, vLLM)Coming soon · 2026-10-16 · 7 PM IST
- Day 17Containerizing AI Workloads: Writing Production Dockerfiles for Python APIsComing soon · 2026-10-17 · 7 PM IST
- Day 18Docker Compose for Multi-Container AI Stacks (Web UI, Vector DB, LLM Engine)Coming soon · 2026-10-18 · 7 PM IST
- Day 19Kubernetes for AI 101: Pods, Deployments, and Services for Model ServingComing soon · 2026-10-19 · 7 PM IST
- Day 20Persistent Storage in Kubernetes: Managing State, Weights, and Vector IndicesComing soon · 2026-10-20 · 7 PM IST
- Day 21High-Performance Networking: Configuring Ingress and Egress for AI ClustersComing soon · 2026-10-21 · 7 PM IST
Week 4 · Enterprise Workflows
- Day 22Autonomous Agents: From Passive LLMs to Goal-Driven ExecutionComing soon · 2026-10-22 · 7 PM IST
- Day 23Tool Use & Function Calling: Connecting LLMs to APIs, Databases, and ShellsComing soon · 2026-10-23 · 7 PM IST
- Day 24Multi-Agent Orchestration: Supervisor, Worker, and Evaluator PatternsComing soon · 2026-10-24 · 7 PM IST
- Day 25Automated CI/CD: Automating the Software Lifecycle for AI ModelsComing soon · 2026-10-25 · 7 PM IST
- Day 26Zero-Trust Security for AI: Sandboxing Ephemeral Execution & Model EgressComing soon · 2026-10-26 · 7 PM IST
- Day 27Observability & Tracing for Agentic Systems (Telemetry, Logs, and Metrics)Coming soon · 2026-10-27 · 7 PM IST
- Day 28Human-in-the-Loop Architecture: Machine Second, Human First in PracticeComing soon · 2026-10-28 · 7 PM IST
- Day 29Managing Technical Debt, Drift, and Model Governance in Enterprise ITComing soon · 2026-10-29 · 7 PM IST
- Day 30The 10-Year Horizon: Architecting IT Strategy for the AI-Native EnterpriseComing soon · 2026-10-30 · 7 PM IST
Day 12: Vector Databases — Storing and Searching Enterprise Knowledge
2026-10-12 · 9 min read
Watch the video lesson, or subscribe on YouTube for a new lesson every day.
Yesterday you turned text into embeddings. Now you have a new problem: where do millions of those vectors live, and how do you find the closest ones to a question fast?
In plain terms: A normal database is a filing cabinet with labelled folders. You ask for the folder called "open" and it hands it over. A vector database is a librarian who understands what you mean and brings the books that are closest to your idea, even if no label matches.
1. The vector store
Standard relational databases such as PostgreSQL or MySQL are built to search for exact matches: WHERE status = 'open'. They have no efficient way to answer "which stored vectors are closest to this one?" That job needs geometry. A vector database such as Milvus, Qdrant or Pinecone is engineered to store and index millions of embeddings and to answer that question efficiently.
2. Approximate nearest neighbour (ANN)
You could compare your question against every stored vector, but at a million documents that is far too slow. Vector databases build an index instead. HNSW (Hierarchical Navigable Small World) is a popular one: it links vectors into a layered graph, so a search starts at a coarse layer and hops closer and closer to the answer. The trade is a little accuracy for a lot of speed, which is why it is called approximate.
3. pgvector: no new system required
If your team already runs PostgreSQL and does not want another database to operate, the pgvector extension adds a vector column type and similarity search to it. Your embeddings sit right next to your normal relational data, so one query can filter by customer and rank by meaning.
Here is a complete pgvector example. The three-number vectors are only there to keep it short; real embeddings have hundreds of dimensions, and the vector(3) size would match your model's output.
CREATE EXTENSION IF NOT EXISTS vector;
CREATE TABLE docs (
id serial PRIMARY KEY,
body text,
embedding vector(3) -- use your model's size, e.g. vector(1536)
);
INSERT INTO docs (body, embedding) VALUES
('High latency on the web tier', '[0.82, -0.11, 0.47]'),
('Packets dropped at the switch', '[0.79, -0.08, 0.51]'),
('Quarterly revenue forecast', '[-0.12, 0.55, 0.20]');
-- An index makes this fast at scale (HNSW with cosine distance):
CREATE INDEX ON docs USING hnsw (embedding vector_cosine_ops);
-- The 2 paragraphs closest in meaning to the question's vector.
-- <=> is cosine distance: smaller means closer.
SELECT body
FROM docs
ORDER BY embedding <=> '[0.80, -0.10, 0.49]'
LIMIT 2;
Put it together and a query looks like this: embed the question, ask the vector database for the nearest vectors, and get the matching paragraphs back.
Coming Up Next
Day 13: Retrieval-Augmented Generation (RAG): chatting with proprietary documents.
#VectorDatabase #DataScience #DataArchitecture #BackendEngineering #AI