No exam weights apply. Lessons follow practical prerequisites: vectors and exact search, approximate indexes, two vector databases, documents and chunks, measuring and improving retrieval, grounded generation and its evaluation, then security, operations and a final challenge.
Choose between RAG, plain search, a database query, a longer prompt and fine-tuning for described scenarios, with reasons.
Show with a run why an aggregate question needs a query rather than retrieval.
With course access: 38 lessons
Embeddings (3 lessons)
Turn text into vectors
Compute vector length, dot product and cosine similarity by hand and with NumPy.
Embed sentences with a local model and inspect the dimension, data type and length of each vector.
Compare similarity measures
Show that cosine similarity, dot product and Euclidean distance rank unit vectors identically and explain when they disagree.
Rank course documents for a query and explain the scores.
Choose and use embedding models
Count tokens with a model's tokenizer and detect when an input is truncated.
Pass a model's query instruction correctly and compare three models by licence, dimension, input limit, speed and results.
Diagnose an index built with one model and queried with another.
Exact Vector Search (2 lessons)
Write exact vector search
Embed the Python documentation once, save the vectors and their texts, and explain why embedding and indexing run in separate scripts.
Implement top-k search with a matrix product and argpartition, returning IDs and scores in order, and check it against a full sort.
Measure the cost of exact search
Measure single-query and batched search time as the collection grows and report medians and 95th percentiles.
Explain why exact search time grows linearly and decide when exact search is good enough.
Approximate Nearest-Neighbour Search (3 lessons)
Build an HNSW index
Explain how HNSW's layered graph finds neighbours and what M, efConstruction and efSearch control.
Build an inner-product HNSW index in FAISS on the D03 vectors and measure recall@10 and latency as efSearch changes.
Partition and compress with IVF and PQ
Train IVF and IVF-PQ indexes and explain nlist, nprobe, codebooks and compression.
Recover recall by re-ranking candidates with the full vectors, and avoid the common construction errors.
Benchmark and choose an index
Benchmark exact and approximate indexes on the same data: recall, single-query latency, build time and memory.
Choose an index and its parameters for a stated requirement, and say when exact search is good enough.
Vector Databases with Qdrant (7 lessons)
Store and query vectors in Qdrant
Create a collection with a vector size and distance, upsert course documents with stable UUIDs and payloads, and query, scroll and count them.
Explain what a vector database adds to an index library.
Filter with payload indexes
Filter queries on keyword, numeric and date payload fields with must, should and must_not.
Create payload indexes and check that filtered results match exact filtered search.
Update, delete and persist
Update payloads, delete points by ID and by filter, and check the results by count and query.
Show that the collection survives a container restart and explain what the named volume stores.
Tune HNSW and quantisation
Load the D03 vectors into Qdrant, wait for indexing, and measure recall and latency for different hnsw_ef values against exact search.
Apply scalar quantisation, compare recall with and without rescoring, and compare memory.
Snapshots, restores and aliases
Create, list and download a collection snapshot and restore it into a new collection, checking counts and results.
Switch an alias between two collections atomically while queries continue.
Design for multiple tenants
Compare one collection partitioned by a tenant field with separate collections per tenant.
Implement the shared-collection design with an is_tenant index and test that tenants never see each other's points.
Secure the Qdrant server
Run a second Qdrant container with admin and read-only API keys from environment variables and show rejected requests.
Explain what local binding, keys, TLS and network placement each protect against.
Vector Search in PostgreSQL (2 lessons)
Search vectors in PostgreSQL
Store the D03 vectors in a vector column, query with the distance operators and build an HNSW index that EXPLAIN shows in use.
Combine vector search with SQL filters, see a filtered query return too few rows, and fix it with iterative index scans.
Use a transaction and show a rolled-back insert is never visible.
Choose a vector database
Compare a dedicated vector database, PostgreSQL with pgvector, an embedded library and a managed service on the properties that matter.
Choose for described scenarios with stated reasons and the evidence that would change the choice.
From Documents to Chunks (3 lessons)
Load and clean documents
Load the course's Markdown, HTML and plain-text documents into records with text, headings and metadata.
Remove navigation and markup without losing headings, and check every record.
Split documents into chunks
Split records by fixed token size with overlap, by sentence and paragraph boundaries, and by heading structure.
Keep every chunk under the embedding model's limit and traceable to its document and position.
Keep IDs stable and re-index
Derive chunk IDs from document IDs and positions and detect changed documents with SHA-256 hashes.
Re-index added, changed and deleted documents without duplicates or stale chunks, checked by counts and queries.
Measuring Retrieval (3 lessons)
Build a retrieval test set
Read and correct labelled questions with graded relevance, including unanswerable, negative, multi-document and version-sensitive questions.
Keep development and test questions separate and explain why.
Measure retrieval quality
Compute recall@k, mean reciprocal rank and nDCG and check them against hand calculations.
Compare configurations on the development questions and explain individual failures from the retrieved chunks.
Compare chunking strategies
Compare chunking strategies and sizes on the development questions with the course metrics.
Choose one from the evidence and its cost, then confirm it once on the test questions.
Better Retrieval (3 lessons)
Add keyword search with BM25
Implement BM25 for the course chunks and check one query's scores by hand.
Use Qdrant's server-side BM25 and compare keyword and dense retrieval on identifiers and paraphrases.
Fuse results and filter
Fuse dense and keyword results with reciprocal rank fusion, by hand and with Qdrant's prefetch and rrf.
Add access, site and recency filters and measure the effect.
Rerank with a cross-encoder
Rerank the top candidates with a cross-encoder and measure the change in quality and the added latency.
Choose how many candidates to rerank and check scores for NaN before trusting them.
Grounded Generation (3 lessons)
Call a local model through Ollama
Send chat requests with explicit options and read the counts, timings and done_reason in the reply.
Stream a reply, handle errors and timeouts, and check the model's context length.
Write grounded prompts with citations
Build a prompt that separates instructions from sources, labels each source with its ID and asks for citations and an exact refusal sentence.
Check citations in code and compare prompt variants on the development questions, including the over-refusal of 'no' answers.
Fit the context budget
Estimate and measure prompt tokens, set num_ctx deliberately and choose how many chunks to include and in what order.
Detect silent truncation from prompt_eval_count.
Evaluating Answers (3 lessons)
Check answers and citations
Score answers with code for citation validity, relevant citations, abstention, required facts and citations of outdated documents.
Separate retrieval failures from generation failures in a report.
Grade answers with a model
Ask the course model to judge whether a source supports a claim, with a JSON schema in Ollama's format field.
Label the same cases yourself and measure agreement before relying on the grader.
Build a regression suite
Turn retrieval and answer checks into a pytest suite with parametrised cases and thresholds.
Show the suite failing for a deliberately broken change and passing after the fix.
Security and Privacy (3 lessons)
Enforce document permissions
Derive the retrieval filter from the caller's identity so restricted documents never reach the model.
Test permissions for every role and question, and find a leak in a supplied pipeline.
Defend against prompt injection
Recognise instructions planted in retrieved documents and test the course model against them.
Apply and measure mitigations, and state the remaining risk.
Protect and delete data
Check documents for secrets and personal data before indexing.
Delete a document completely from the collection, snapshots, caches and logs, and verify each store.
Operating a RAG System (2 lessons)
Measure, trace and cache
Measure latency per stage and log a trace of each request's retrieved IDs, scores and prompt size.
Cache embeddings and answers safely and use a trace to explain a wrong answer.
Change the embedding model without downtime
Re-index into a new collection with a new embedding model and compare it on the test questions.
Switch an alias while queries continue, and roll back.
Final Challenge (1 lessons)
Final challenge: a secured RAG assistant
Build a RAG assistant for a supplied document set that meets stated retrieval, grounding, abstention, permission, injection and update checks.
Justify the design in a short report with evidence from your own runs.
Study views
Full Course
Revision
Quick Reference
Unlock all 43 lessons
Course access opens every lesson and adds revision notes, the Quick Reference, saved progress, bookmarks and your own notes.
INR 199 plus 18% GST. 90 days of online access. No auto-renewal.
Know what is included
Independent learning material from Vectametric. Not affiliated with or endorsed by the organisations behind the tools it teaches. Practice exams and projects are separate. Completing a course is not a professional certification.
Questions about courses
Are these video courses or reading courses?
The current courses use written lessons, examples and diagrams. Full Course, Revision and Cheat Sheet or Quick Reference views cover the same learning sequence at different levels of detail.
Which course should I start with?
Choose a Certification Course for a named exam, a Career Path Course for a role-led sequence, or a Skill Course for a focused subject. Read its level, prerequisites and curriculum before enrolling.
Do revision notes replace the full lessons?
No. Start with the full explanations, then use revision notes to refresh your understanding. Cheat sheets are concise study references, not a substitute for learning or permission to use notes during an official exam.
Are practice exams and projects included?
No. Course access, practice-exam bundles and project access are separate. An official certification, exam booking or voucher is not included.
How long do I have access?
The course page and checkout show the current online access period and price, including free enrollment where offered. Access starts when enrollment is confirmed and does not auto-renew.
Can I read lessons before enrolling?
Yes. Each course opens its first lessons to read without an account, and some courses are open in full. The course curriculum marks the lessons you can read now. Course access adds the remaining lessons, the Revision and Cheat Sheet or Quick Reference views, saved progress, bookmarks and personal notes.
Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.