Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesRAG & Vector Databases
Get started free

Online course, Engineering

RAG & Vector Databases: From Embeddings to a Production Pipeline in Python

12 lessons of 25–35 minutes, about 6 hours in total: Python code, a task and a quiz in each.

Start: 7 days freePreview the first lesson, no sign-in

No card needed. The first two lessons are free after sign-up, all lessons come with Pro at $9 a month.

Text cut into overlapping chunks, the top three lifted into resultsLesson 1, 25 minEmbeddings and Similarity Metrics
  • Intermediatelevel
  • 6 h 15 min12 lessons, 4 modules
  • At your own paceupdated Dec 2, 2026
  • Certificatewith a check code
What you will learnLessonsCertificateQuestionsStart the course

What you will learn

  • Pick an embedding model and dimension, and know when cosine, dot product and Euclidean distance differ
  • Run Qdrant in Docker and pgvector in Postgres, build an HNSW index and compare latency
  • Build semantic search: embed → upsert with metadata → query top-k with filters and namespaces
  • Extract clean text from PDF, DOCX, HTML and Markdown with page and section numbers
  • Compare chunking strategies and apply small-to-big retrieval
  • Clean a corpus: exact duplicates by hash, near-duplicates by cosine > 0.97, headers, footers and empty chunks
  • Fuse BM25 and vector search with RRF and add a cross-encoder reranker over the top 50
  • Try HyDE, multi-query and step-back on hard questions and measure the recall@5 gain
  • Evaluate RAG with RAGAS on a 30-question golden set: context precision, context recall, faithfulness
  • Take the pipeline to production: SSE streaming, [N] citations to the page, embedding cache, monitoring

What the RAG & vector databases course covers

The course walks through a whole RAG system in Python: embeddings and similarity metrics, vector stores (Pinecone, Qdrant, pgvector, Chroma, FAISS), document loading and chunking, hybrid BM25 + vector search with RRF, reranking, query expansion, RAGAS evaluation and production with citations and caching. 12 lessons, about 6 hours in total.

Pricing and what's free →
02
Free lesson

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

Managed and self-hosted stores side by side: Pinecone, Qdrant, pgvector, Chroma and FAISS, HNSW and IVF indexes, running Qdrant in Docker and pgvector in Postgres. In the task you load 1000 vectors into Qdrant and pgvector, compare top-5 latency and build an HNSW index in pgvector.

Open the lesson →

Lessons

Embeddings and vector search → chunking and preprocessing → advanced retrieval → end-to-end pipeline and evaluation. The first two lessons are free.

Module 1 · 3 lessons · 1 h 25 min

Embeddings & Vector Search

What embeddings are, how similarity is computed, which models to choose, and where to store vectors.

1Embeddings and Similarity Metricsfree25 minWhat an embedding is, cosine vs dot product vs Euclidean, comparing text-embedding-3-large, ada-002, Cohere Embed v3 and all-MiniLM, choosing dimensions.2Vector Stores: Pinecone, Qdrant, pgvector, Chroma, FAISSfree30 minComparing managed and self-hosted stores, HNSW and IVF index types, running Qdrant in Docker and pgvector in Postgres, when to choose what.3Full Semantic Search: embed → upsert → query30 minEnd-to-end search pipeline: embedding, upsert with metadata, top-k query, metadata filtering, and namespace partitioning.
Module 2 · 3 lessons · 1 h 35 min

Chunking & Preprocessing

How to split documents, load different formats, and clean data before indexing.

4Chunking Strategies35 minFixed-size, sentence, semantic chunking, overlap, the impact of chunk size on recall vs precision, and the small-to-big retrieval pattern.5Document Loaders: PDF, DOCX, HTML, Markdown, code35 minExtracting clean text from PDF (PyMuPDF, pdfplumber), DOCX, HTML (BeautifulSoup), Markdown and code while preserving structure.6

Who it is for

  • Python developers building search and Q&A systems on LLMs
  • Engineers choosing a vector database: a managed service, Qdrant, or pgvector in an existing Postgres
  • Teams with a working RAG who need better retrieval and numbers to prove it
  • Anyone moving a LangChain or LlamaIndex prototype into production

How the lessons work

  1. A 25–35-minute lessonTheory with comparison tables and working Python code for every step.
  2. A hands-on task in every lessonFor example, index a 30-page PDF three ways and compare answers to 10 questions, or run 15 error-code queries through BM25, vector and hybrid search. AI checks your solution and explains the result (after sign-up).
  3. Ready-made prompt and common mistakesA prompt for the lesson task and the mistakes that cost quality: query and documents embedded with different models, Markdown flattened without its heading structure, an RRF k picked at random.
  4. 4-question quiz and AI tutorThe quiz checks the lesson; the AI tutor answers questions on the topic.
  5. CertificateAfter all lessons you get a certificate with a unique verification code.

Certificate of completion

You get it when you finish every lesson. Each certificate has its own code, so an employer can check it on our site. You can add it to LinkedIn.

See how a certificate is checked
Sample

Sources behind the course

The course was published in May 2026.

pgvector supports HNSW and IVFFlat indexes; the vector type indexes up to 2,000 dimensions, and for hybrid search it is used with Postgres full-text search, combining results with RRF or a cross-encoder.

The RRF formula with k = 60 comes from Cormack, Clarke and Büttcher (SIGIR 2009); Qdrant's built-in RRF defaults to k = 2, so its results can differ from the lesson code. Current RAGAS docs call the answer relevancy metric Response Relevancy.

Models in the examples (text-embedding-3-large, gpt-4o, gpt-4o-mini, Cohere rerank-english-v3.0) are as of publication. OpenAI shuts down gpt-4o and gpt-4o-mini on January 14, 2027, with gpt-6-luna as the replacement. rerank-english-v3.0 is English-only; for other languages Cohere offers the multilingual rerank-v5.0-pro and rerank-v5.0-fast.

For comparing approaches, Anthropic's Contextual Retrieval post is useful: in its tests contextual embeddings, BM25 and reranking together cut top-20 retrieval failures by 67%.

  • pgvector on GitHub
  • Qdrant — hybrid queries and RRF
  • Cormack et al. — Reciprocal Rank Fusion (SIGIR 2009, PDF)
  • RAGAS — available metrics
  • Anthropic — Contextual Retrieval
  • OpenAI — deprecations and shutdown dates
  • Cohere — Rerank models and languages

What's free and what it costs

  • The first two lessons, embeddings and vector stores, are free after a free sign-up.
  • After sign-up you get 7 days of full access to all 12 lessons and the whole catalog, no card needed.
  • After that, Pro costs $9 a month or $79 a year. Online card payment is not connected yet: write to info@academl.com and we open access manually.
  • Qdrant, pgvector, Chroma and FAISS run locally for free; embedding, reranking and model API calls run on your own key at the provider's rates.

RAG & vector databases course: questions

Which vector database: Pinecone, Qdrant or pgvector?+

The lesson compares managed and self-hosted options. If your data already lives in Postgres, pgvector adds vector search to the same database with HNSW and IVFFlat indexes. Qdrant runs in Docker and handles filters and hybrid queries. A managed service such as Pinecone takes operations off your hands. In the task you measure latency yourself on 1000 vectors.

What is hybrid search and why RRF?+

Hybrid search combines lexical BM25 with vector search. BM25 catches exact matches such as error code E1042, vectors catch matches by meaning. Their scores sit on different scales, so Reciprocal Rank Fusion adds up ranks instead: 1 / (k + rank) for each list, with k = 60 per the 2009 paper.

What chunk size works best?+

The lesson compares fixed size with overlap (for example 800 tokens with 120 overlap), sentence-based splitting and semantic chunking, and shows the small-to-big pattern: search over small chunks and pass the parent passage to the prompt. You pick the winner by measuring on your own questions, which is the lesson task.

How do I evaluate RAG quality?+

With RAGAS on a golden set with reference answers. Context precision and context recall show how well retrieval works, faithfulness shows whether the answer sticks to the retrieved context. In the lesson task you run 30 questions before and after adding a reranker and use the metric changes to explain what exactly improved.

LangChain, LlamaIndex or a plain SDK?+

The end-to-end lesson builds the RAG twice: on LlamaIndex and on a plain SDK. Its advice: prototype on LlamaIndex or LangChain, then rewrite production bottlenecks on the SDK where latency and predictability matter.

What experience do I need?+

Solid Python, calling APIs with a key, Docker to run Qdrant and basic SQL for pgvector. If RAG is new to you, start with the one-hour RAG and working with documents course; embedding basics are covered in OpenAI Embeddings.

The course in short

level
Intermediate
For whom
For developers
Task
Search in data, RAG
Format
Lessons, quizzes and tasks checked by AI
Lesson language
English

Is this course right for you?

Check your level in 3 minutes. We will show which course to start with.

Check my level

More courses on this topic

Full catalog
Intermediate

OpenAI Embeddings: Complete Guide

8 lessons on OpenAI embeddings: text-embedding-3-small, semantic search, code search, reranking, classification, clustering, Q&A and recommendations.

3 h 20 min, 8 lessonsCertificate
Intermediate

OpenAI RAG & Production Patterns

6 Python lessons: RAG over complex PDFs, search with HyDE, prompt caching, 429 retries, long document summarization and entity extraction. 2026 notes.

2 h 35 min, 6 lessonsCertificate
Intermediate

RAG and working with documents

A short RAG course: when RAG beats long context, how to chunk documents, measure Recall@K, add a reranker and keep the index fresh.

1 h 10 min, 4 lessonsCertificate
Advanced

OpenAI Fine-tuning: From Data to DPO

5 Python lessons: JSONL checks and training cost, SFT, DPO, distillation and RFT with a grader. What changed in OpenAI fine-tuning in 2026 is on the page.

3 h 10 min, 5 lessonsCertificate

Keep going

RAG and working with documents: a one-hour overview →Lesson: Embeddings basic usage →Hybrid search and reranking in LLM Engineer →OpenAI RAG & Production Patterns →Prompt evaluations, based on Anthropic's course →A fully local RAG with Ollama →LLM courses: all stages →OpenAI embeddings guide: which model, how many dimensions, what it costs →

Stand up your first vector database today

The first two lessons are open after a free sign-up. Sign up with email or Google to get 7 days of full access to the whole course and catalog.

Sign up
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Preprocessing: deduplication, cleaning, metadata
25 min
Removing duplicates, noise and non-informative chunks, extracting metadata (page, section, source URL) before indexing.
Module 3 · 3 lessons · 1 h 35 min

Advanced Retrieval

Hybrid search, reranking, and query expansion for complex questions.

7Hybrid Search: BM25 + dense, RRF30 minCombining lexical BM25 and dense vectors, reciprocal rank fusion (RRF), Weaviate hybrid, why hybrid beats pure semantic on keyword-heavy queries.8Reranking: cross-encoder and two-stage retrieval30 minCross-encoder rerankers (Cohere Rerank, BGE reranker), the recall→precision two-stage scheme, latency and cost trade-off.9Query Expansion: HyDE, multi-query, step-back35 minHyDE (hypothetical document embedding), multi-query generation, step-back prompting and query decomposition for complex questions.
Module 4 · 3 lessons · 1 h 40 min

RAG Pipeline & Evaluation

An end-to-end pipeline, automated evaluation via RAGAS, and production patterns.

10End-to-End RAG Pipeline35 minIngest pipeline (embed + store) and query pipeline (retrieve → rerank → prompt → generate), comparing LangChain, LlamaIndex and the raw SDK.11RAG Evaluation: RAGAS30 minThe RAGAS framework: context precision, context recall, faithfulness, answer relevancy — automated evals and a regression test suite.12Production RAG: streaming, citations, cache, monitoring35 minStreaming responses, citation generation tied to chunks, caching embeddings, monitoring retrieval quality, and cost optimization.
Certificate
Your name
for the course
RAG & Vector Databases
ACADEML · VERIFIED · ACADEML · VERIFIED · SAMPLE
How long is the course and what does it cost?+

12 lessons of 25–35 minutes, about 6 hours in total, with a certificate with a verification code after all lessons. The first two lessons are always free, sign-up gives 7 days of full access with no card, then Pro is $9 a month or $79 a year.