AI & AI Engineering
RAG & Vector Search
Prepare for Retrieval-Augmented Generation (RAG), vector databases, embeddings, semantic search, document processing, retrieval strategies, and production RAG architecture.
Your learning roadmap
Explore the key concepts
Use these subtopics as a study checklist. Start with the fundamentals, then progress to practical examples and interview preparation.
RAG fundamentals
Understand the fundamentals of Retrieval-Augmented Generation and how combining information retrieval with language models improves AI responses.
Start learningIntroduction to Retrieval-Augmented Generation
Explore how RAG connects external knowledge sources to large language models to generate context-aware and information-grounded answers.
Start learningWhy RAG is needed
Learn why language models need external knowledge, how RAG addresses outdated information and knowledge limitations, and when retrieval is useful.
Start learningRAG architecture and workflow
Understand the complete RAG pipeline, from document ingestion and embedding generation to retrieval, context construction, and response generation.
Start learningRAG vs fine-tuning
Compare retrieval-augmented generation with fine-tuning in terms of knowledge updates, customization, cost, training requirements, and application scenarios.
Start learningRAG vs long-context prompting
Compare RAG with long-context prompting and understand their differences in information retrieval, context usage, scalability, and processing costs.
Start learningDocument ingestion and loading
Learn how to ingest documents from files, databases, cloud storage, and external sources to prepare knowledge for a RAG pipeline.
Start learningDocument parsing and extraction
Explore document parsing techniques for extracting text, metadata, tables, and structured information from different file formats.
Start learningPDF and text document processing
Learn how to process PDF and text files, extract meaningful content, handle document layouts, and prepare files for retrieval systems.
Start learningText preprocessing and cleaning
Understand text normalization, noise removal, whitespace handling, duplicate removal, and other preprocessing techniques used before embedding generation.
Start learningText chunking strategies
Explore different document chunking approaches and learn how chunk size and boundaries influence retrieval accuracy and context quality.
Start learningFixed-size chunking
Learn how fixed-size chunking divides documents using predefined character or token limits and understand its implementation trade-offs.
Start learningRecursive character chunking
Understand recursive character splitting, separator-based document division, and how hierarchical splitting preserves meaningful text boundaries.
Start learningSemantic chunking
Explore semantic chunking techniques that group related sentences and paragraphs using contextual meaning and embedding similarity.
Start learningOverlapping chunks
Learn how overlapping chunks preserve context between adjacent document segments and how overlap affects retrieval quality and storage costs.
Start learningMetadata extraction and enrichment
Understand how to extract and attach document metadata such as source, author, category, timestamps, and access permissions for better retrieval.
Start learningEmbedding fundamentals
Learn the mathematical and conceptual foundations of embeddings and how machine-readable vectors represent semantic information.
Start learningWhat are vector embeddings
Understand how vector embeddings convert text and other data into numerical representations that capture useful semantic relationships.
Start learningEmbedding models
Compare embedding models, their training approaches, supported dimensions, language capabilities, and suitability for different retrieval applications.
Start learningGenerating embeddings
Learn how to generate vector embeddings from documents and queries using embedding APIs and integrate them into a retrieval pipeline.
Start learningText and document embeddings
Explore how text passages and complete documents are converted into vectors and how representation choices affect semantic retrieval.
Start learningEmbedding dimensions
Understand embedding dimensions, vector representation size, dimensionality trade-offs, storage requirements, and similarity-search performance.
Start learningVector databases fundamentals
Learn the purpose of vector databases, how they store embeddings, and why they are useful for similarity search and AI applications.
Start learningVector database architecture
Explore vector database architecture, including vector storage, indexing, metadata management, similarity queries, and retrieval operations.
Start learningPinecone
Learn how Pinecone stores and retrieves vector embeddings, manages indexes, applies metadata filters, and supports production RAG applications.
Start learningChromaDB
Explore ChromaDB collections, embedding storage, similarity queries, metadata filtering, and its use in local and production RAG workflows.
Start learningWeaviate
Understand Weaviate's vector database architecture, collections, vectorization options, hybrid search, and retrieval capabilities.
Start learningQdrant
Learn how Qdrant manages vector collections, payload metadata, similarity search, filtering, and scalable vector retrieval.
Start learningMilvus
Explore Milvus architecture, vector collections, indexing methods, similarity search, and large-scale vector database deployments.
Start learningAzure AI Search
Understand how Azure AI Search supports vector indexes, semantic ranking, hybrid retrieval, and enterprise search-based RAG solutions.
Start learningPostgreSQL with pgvector
Learn how PostgreSQL and pgvector store embeddings, create vector indexes, and perform similarity searches alongside relational queries.
Start learningSimilarity search
Understand similarity search algorithms and how vector databases identify the embeddings most relevant to a given query.
Start learningCosine similarity
Learn how cosine similarity measures the angle between vectors and how it is used to compare semantic embeddings.
Start learningEuclidean distance
Understand Euclidean distance as a vector similarity measure and explore how distance calculations influence nearest-neighbour retrieval.
Start learningDot product similarity
Explore dot product similarity, vector magnitude, and how dot-product calculations are used in embedding retrieval systems.
Start learningSemantic search
Learn how semantic search retrieves information based on meaning rather than exact keyword matches using vector representations.
Start learningKeyword search
Understand traditional keyword retrieval, inverted indexes, term matching, and approaches such as BM25 for document search.
Start learningHybrid search
Explore hybrid search techniques that combine keyword matching and vector similarity to improve relevance and retrieval coverage.
Start learningMetadata filtering
Learn how metadata filters restrict vector searches using attributes such as category, date, document source, and user permissions.
Start learningTop-K retrieval
Understand Top-K retrieval and how selecting the highest-ranked document chunks affects relevance, context size, and answer quality.
Start learningRetrieval strategies
Compare retrieval strategies for RAG applications, including similarity search, hybrid retrieval, filtering, query expansion, and reranking.
Start learningMaximum Marginal Relevance (MMR)
Learn how Maximum Marginal Relevance balances relevance and diversity to reduce redundant results in document retrieval.
Start learningReranking and cross-encoder models
Understand how reranking models and cross-encoders reorder retrieved passages to improve relevance before sending context to an LLM.
Start learningContext window management
Learn how to manage retrieved context within model token limits by prioritizing relevant passages and controlling prompt size.
Start learningContext compression
Explore context compression techniques that remove irrelevant information and shorten retrieved passages while preserving useful details.
Start learningRAG prompt construction
Learn how to construct RAG prompts by combining user questions, retrieved passages, instructions, and response requirements.
Start learningGrounded response generation
Understand how to generate answers grounded in retrieved source material and reduce unsupported claims in language-model responses.
Start learningCitation and source attribution
Learn how to associate generated answers with retrieved documents, provide source citations, and maintain traceability of information.
Start learningRAG evaluation fundamentals
Explore how to evaluate complete RAG pipelines across retrieval quality, answer correctness, relevance, faithfulness, and system performance.
Start learningRetrieval precision and recall
Understand precision and recall metrics for retrieval systems and learn how to measure whether relevant documents are successfully retrieved.
Start learningFaithfulness and answer relevance
Learn how to evaluate whether generated answers are supported by retrieved context and whether they directly address user questions.
Start learningRAG evaluation frameworks
Explore RAG evaluation frameworks and how they measure retrieval relevance, context precision, answer quality, and faithfulness.
Start learningReducing hallucinations in RAG
Learn techniques for reducing hallucinations through better retrieval, source-grounded prompts, context validation, and response evaluation.
Start learningAdvanced RAG techniques
Explore advanced RAG architectures and retrieval improvements that address complex queries, document relationships, and contextual limitations.
Start learningQuery transformation and rewriting
Understand how query transformation and rewriting improve retrieval by clarifying ambiguous questions and adapting search queries.
Start learningMulti-query retrieval
Learn how generating multiple alternative queries expands retrieval coverage and helps locate relevant information from different perspectives.
Start learningParent-child retrieval
Explore parent-child retrieval, where smaller chunks improve search precision while larger parent documents provide additional context.
Start learningHierarchical retrieval
Understand hierarchical retrieval techniques that search across document summaries, sections, and smaller passages at different levels.
Start learningSelf-query retrieval
Learn how self-query retrieval converts natural-language questions into structured search queries with metadata filters.
Start learningAgentic RAG
Explore agentic RAG systems where AI agents plan retrieval steps, select tools, refine queries, and decide when additional information is needed.
Start learningGraph RAG fundamentals
Understand GraphRAG approaches that use entities, relationships, and knowledge graphs to retrieve connected information from large document collections.
Start learningMultimodal RAG
Learn how multimodal RAG processes text, images, tables, audio, and other content types to support richer information retrieval.
Start learningRAG security and access control
Explore RAG security practices including document-level permissions, tenant isolation, prompt injection protection, and secure retrieval filtering.
Start learningProduction RAG architecture
Understand how to design production-ready RAG systems with ingestion pipelines, vector databases, retrieval services, monitoring, and scalable APIs.
Start learningRAG performance optimization
Learn how to optimize RAG latency, throughput, retrieval quality, embedding generation, and LLM response time in production environments.
Start learningVector indexing and scaling
Explore vector indexing algorithms, approximate nearest-neighbour search, index configuration, and scaling strategies for large embedding collections.
Start learningCaching in RAG applications
Learn how caching queries, embeddings, retrieval results, and generated responses can reduce latency and operating costs in RAG applications.
Start learningMonitoring and observability
Understand how to monitor RAG pipelines using logs, traces, metrics, retrieval diagnostics, latency measurements, and quality indicators.
Start learningBuilding RAG applications with Python
Learn how to build a Python-based RAG application using document loaders, text splitters, embedding models, vector databases, and LLM APIs.
Start learningBuilding RAG applications with .NET
Building RAG applications with .NET: Learn its key concepts, practical implementation, architecture, and interview considerations.
Start learningRAG integration with LangChain
Learn how LangChain components connect document loaders, text splitters, embeddings, retrievers, vector stores, and language models into RAG pipelines.
Start learningRAG integration with Semantic Kernel
Understand how Microsoft Semantic Kernel integrates AI services, vector stores, plugins, and retrieval workflows to build RAG applications in .NET.
Start learningPractice & revise
Interview questions
Practice interview questions with answers, key points, and practical examples.
Test your knowledge
Explore 100 questions for this topic, covering concepts, practical examples, and interview scenarios.
Keep learning step by step
Work through the concepts, practice explaining them in your own words, and use interview questions to check your understanding.
Explore another learning path