RAG from Fundamentals to Advanced: A Panoramic Guide to Vector Retrieval, Knowledge Graphs, and Agentic RAG
A systematic introduction to Retrieval-Augmented Generation (RAG): the core principles (the index-retrieve-generate pipeline and how it differs from fine-tuning), optimization techniques and advanced approaches (query rewriting, hybrid retrieval, reranking, Modular RAG, and evaluation), knowledge graph construction (the GraphRAG indexing pipeline, entity extraction, and Leiden community detection), applying knowledge graphs in RAG (Local/Global Search, multi-hop reasoning), processing chart- and table-rich PDF/DOCX documents (text-based parsing vs. ColPali-style vision-native retrieval, with a MinerU/Docling/LlamaParse tool comparison), a stage-by-stage engineering toolchain and selection guide (embedding models, vector stores, rerankers, evaluation, and orchestration frameworks compared, with a catalog of deployable open-source projects such as RAGFlow, Kotaemon, and R2R), the plan-retrieve-reflect loop of Agentic RAG, and the future evolution of RAG — with frequently asked interview questions and reference answers at the end.