InterviewTreedInterviewTreed
All learning paths

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 learning

Introduction to Retrieval-Augmented Generation

Explore how RAG connects external knowledge sources to large language models to generate context-aware and information-grounded answers.

Start learning

Why RAG is needed

Learn why language models need external knowledge, how RAG addresses outdated information and knowledge limitations, and when retrieval is useful.

Start learning

RAG architecture and workflow

Understand the complete RAG pipeline, from document ingestion and embedding generation to retrieval, context construction, and response generation.

Start learning

RAG vs fine-tuning

Compare retrieval-augmented generation with fine-tuning in terms of knowledge updates, customization, cost, training requirements, and application scenarios.

Start learning

RAG vs long-context prompting

Compare RAG with long-context prompting and understand their differences in information retrieval, context usage, scalability, and processing costs.

Start learning

Document ingestion and loading

Learn how to ingest documents from files, databases, cloud storage, and external sources to prepare knowledge for a RAG pipeline.

Start learning

Document parsing and extraction

Explore document parsing techniques for extracting text, metadata, tables, and structured information from different file formats.

Start learning

PDF 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 learning

Text preprocessing and cleaning

Understand text normalization, noise removal, whitespace handling, duplicate removal, and other preprocessing techniques used before embedding generation.

Start learning

Text chunking strategies

Explore different document chunking approaches and learn how chunk size and boundaries influence retrieval accuracy and context quality.

Start learning

Fixed-size chunking

Learn how fixed-size chunking divides documents using predefined character or token limits and understand its implementation trade-offs.

Start learning

Recursive character chunking

Understand recursive character splitting, separator-based document division, and how hierarchical splitting preserves meaningful text boundaries.

Start learning

Semantic chunking

Explore semantic chunking techniques that group related sentences and paragraphs using contextual meaning and embedding similarity.

Start learning

Overlapping chunks

Learn how overlapping chunks preserve context between adjacent document segments and how overlap affects retrieval quality and storage costs.

Start learning

Metadata extraction and enrichment

Understand how to extract and attach document metadata such as source, author, category, timestamps, and access permissions for better retrieval.

Start learning

Embedding fundamentals

Learn the mathematical and conceptual foundations of embeddings and how machine-readable vectors represent semantic information.

Start learning

What are vector embeddings

Understand how vector embeddings convert text and other data into numerical representations that capture useful semantic relationships.

Start learning

Embedding models

Compare embedding models, their training approaches, supported dimensions, language capabilities, and suitability for different retrieval applications.

Start learning

Generating embeddings

Learn how to generate vector embeddings from documents and queries using embedding APIs and integrate them into a retrieval pipeline.

Start learning

Text and document embeddings

Explore how text passages and complete documents are converted into vectors and how representation choices affect semantic retrieval.

Start learning

Embedding dimensions

Understand embedding dimensions, vector representation size, dimensionality trade-offs, storage requirements, and similarity-search performance.

Start learning

Vector databases fundamentals

Learn the purpose of vector databases, how they store embeddings, and why they are useful for similarity search and AI applications.

Start learning

Vector database architecture

Explore vector database architecture, including vector storage, indexing, metadata management, similarity queries, and retrieval operations.

Start learning

Pinecone

Learn how Pinecone stores and retrieves vector embeddings, manages indexes, applies metadata filters, and supports production RAG applications.

Start learning

ChromaDB

Explore ChromaDB collections, embedding storage, similarity queries, metadata filtering, and its use in local and production RAG workflows.

Start learning

Weaviate

Understand Weaviate's vector database architecture, collections, vectorization options, hybrid search, and retrieval capabilities.

Start learning

Qdrant

Learn how Qdrant manages vector collections, payload metadata, similarity search, filtering, and scalable vector retrieval.

Start learning

Milvus

Explore Milvus architecture, vector collections, indexing methods, similarity search, and large-scale vector database deployments.

Start learning

Azure AI Search

Understand how Azure AI Search supports vector indexes, semantic ranking, hybrid retrieval, and enterprise search-based RAG solutions.

Start learning

PostgreSQL with pgvector

Learn how PostgreSQL and pgvector store embeddings, create vector indexes, and perform similarity searches alongside relational queries.

Start learning

Similarity search

Understand similarity search algorithms and how vector databases identify the embeddings most relevant to a given query.

Start learning

Cosine similarity

Learn how cosine similarity measures the angle between vectors and how it is used to compare semantic embeddings.

Start learning

Euclidean distance

Understand Euclidean distance as a vector similarity measure and explore how distance calculations influence nearest-neighbour retrieval.

Start learning

Dot product similarity

Explore dot product similarity, vector magnitude, and how dot-product calculations are used in embedding retrieval systems.

Start learning

Semantic search

Learn how semantic search retrieves information based on meaning rather than exact keyword matches using vector representations.

Start learning

Keyword search

Understand traditional keyword retrieval, inverted indexes, term matching, and approaches such as BM25 for document search.

Start learning

Hybrid search

Explore hybrid search techniques that combine keyword matching and vector similarity to improve relevance and retrieval coverage.

Start learning

Metadata filtering

Learn how metadata filters restrict vector searches using attributes such as category, date, document source, and user permissions.

Start learning

Top-K retrieval

Understand Top-K retrieval and how selecting the highest-ranked document chunks affects relevance, context size, and answer quality.

Start learning

Retrieval strategies

Compare retrieval strategies for RAG applications, including similarity search, hybrid retrieval, filtering, query expansion, and reranking.

Start learning

Maximum Marginal Relevance (MMR)

Learn how Maximum Marginal Relevance balances relevance and diversity to reduce redundant results in document retrieval.

Start learning

Reranking and cross-encoder models

Understand how reranking models and cross-encoders reorder retrieved passages to improve relevance before sending context to an LLM.

Start learning

Context window management

Learn how to manage retrieved context within model token limits by prioritizing relevant passages and controlling prompt size.

Start learning

Context compression

Explore context compression techniques that remove irrelevant information and shorten retrieved passages while preserving useful details.

Start learning

RAG prompt construction

Learn how to construct RAG prompts by combining user questions, retrieved passages, instructions, and response requirements.

Start learning

Grounded response generation

Understand how to generate answers grounded in retrieved source material and reduce unsupported claims in language-model responses.

Start learning

Citation and source attribution

Learn how to associate generated answers with retrieved documents, provide source citations, and maintain traceability of information.

Start learning

RAG evaluation fundamentals

Explore how to evaluate complete RAG pipelines across retrieval quality, answer correctness, relevance, faithfulness, and system performance.

Start learning

Retrieval precision and recall

Understand precision and recall metrics for retrieval systems and learn how to measure whether relevant documents are successfully retrieved.

Start learning

Faithfulness and answer relevance

Learn how to evaluate whether generated answers are supported by retrieved context and whether they directly address user questions.

Start learning

RAG evaluation frameworks

Explore RAG evaluation frameworks and how they measure retrieval relevance, context precision, answer quality, and faithfulness.

Start learning

Reducing hallucinations in RAG

Learn techniques for reducing hallucinations through better retrieval, source-grounded prompts, context validation, and response evaluation.

Start learning

Advanced RAG techniques

Explore advanced RAG architectures and retrieval improvements that address complex queries, document relationships, and contextual limitations.

Start learning

Query transformation and rewriting

Understand how query transformation and rewriting improve retrieval by clarifying ambiguous questions and adapting search queries.

Start learning

Multi-query retrieval

Learn how generating multiple alternative queries expands retrieval coverage and helps locate relevant information from different perspectives.

Start learning

Parent-child retrieval

Explore parent-child retrieval, where smaller chunks improve search precision while larger parent documents provide additional context.

Start learning

Hierarchical retrieval

Understand hierarchical retrieval techniques that search across document summaries, sections, and smaller passages at different levels.

Start learning

Self-query retrieval

Learn how self-query retrieval converts natural-language questions into structured search queries with metadata filters.

Start learning

Agentic RAG

Explore agentic RAG systems where AI agents plan retrieval steps, select tools, refine queries, and decide when additional information is needed.

Start learning

Graph RAG fundamentals

Understand GraphRAG approaches that use entities, relationships, and knowledge graphs to retrieve connected information from large document collections.

Start learning

Multimodal RAG

Learn how multimodal RAG processes text, images, tables, audio, and other content types to support richer information retrieval.

Start learning

RAG security and access control

Explore RAG security practices including document-level permissions, tenant isolation, prompt injection protection, and secure retrieval filtering.

Start learning

Production RAG architecture

Understand how to design production-ready RAG systems with ingestion pipelines, vector databases, retrieval services, monitoring, and scalable APIs.

Start learning

RAG performance optimization

Learn how to optimize RAG latency, throughput, retrieval quality, embedding generation, and LLM response time in production environments.

Start learning

Vector indexing and scaling

Explore vector indexing algorithms, approximate nearest-neighbour search, index configuration, and scaling strategies for large embedding collections.

Start learning

Caching in RAG applications

Learn how caching queries, embeddings, retrieval results, and generated responses can reduce latency and operating costs in RAG applications.

Start learning

Monitoring and observability

Understand how to monitor RAG pipelines using logs, traces, metrics, retrieval diagnostics, latency measurements, and quality indicators.

Start learning

Building 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 learning

Building RAG applications with .NET

Building RAG applications with .NET: Learn its key concepts, practical implementation, architecture, and interview considerations.

Start learning

RAG integration with LangChain

Learn how LangChain components connect document loaders, text splitters, embeddings, retrievers, vector stores, and language models into RAG pipelines.

Start learning

RAG 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 learning

Practice & 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.

Browse 100 questions

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